mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Add missing module name prefixes to usage examples in some NSE documentation.
This commit is contained in:
@@ -96,7 +96,7 @@ end
|
|||||||
-- For example, the address 139.104.32.123 becomes { 139, 104, 32, 123 }.
|
-- For example, the address 139.104.32.123 becomes { 139, 104, 32, 123 }.
|
||||||
-- @usage
|
-- @usage
|
||||||
-- local a, b, c, d;
|
-- local a, b, c, d;
|
||||||
-- local t, err = get_parts_as_number( "139.104.32.123" )
|
-- local t, err = ipOps.get_parts_as_number( "139.104.32.123" )
|
||||||
-- if t then a, b, c, d = unpack( t ) end
|
-- if t then a, b, c, d = unpack( t ) end
|
||||||
-- @param ip String representing an IPv4 or IPv6 address. Shortened notation
|
-- @param ip String representing an IPv4 or IPv6 address. Shortened notation
|
||||||
-- is permitted.
|
-- is permitted.
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ end
|
|||||||
-- This is Lua's <code>table.concat</code> function with the parameters
|
-- This is Lua's <code>table.concat</code> function with the parameters
|
||||||
-- swapped for coherence.
|
-- swapped for coherence.
|
||||||
-- @usage
|
-- @usage
|
||||||
-- strjoin(", ", {"Anna", "Bob", "Charlie", "Dolores"})
|
-- stdnse.strjoin(", ", {"Anna", "Bob", "Charlie", "Dolores"})
|
||||||
-- --> "Anna, Bob, Charlie, Dolores"
|
-- --> "Anna, Bob, Charlie, Dolores"
|
||||||
-- @param delimiter String to delimit each element of the list.
|
-- @param delimiter String to delimit each element of the list.
|
||||||
-- @param list Array of strings to concatenate.
|
-- @param list Array of strings to concatenate.
|
||||||
@@ -59,7 +59,7 @@ end
|
|||||||
|
|
||||||
--- Split a string at a given delimiter, which may be a pattern.
|
--- Split a string at a given delimiter, which may be a pattern.
|
||||||
-- @usage
|
-- @usage
|
||||||
-- strsplit(",%s*", "Anna, Bob, Charlie, Dolores")
|
-- stdnse.strsplit(",%s*", "Anna, Bob, Charlie, Dolores")
|
||||||
-- --> { "Anna", "Bob", "Charlie", "Dolores" }
|
-- --> { "Anna", "Bob", "Charlie", "Dolores" }
|
||||||
-- @param pattern Pattern that separates the desired strings.
|
-- @param pattern Pattern that separates the desired strings.
|
||||||
-- @param text String to split.
|
-- @param text String to split.
|
||||||
|
|||||||
Reference in New Issue
Block a user