1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Add missing module name prefixes to usage examples in some NSE documentation.

This commit is contained in:
david
2009-02-17 19:53:02 +00:00
parent f0c645b9f2
commit d8c3cf21a5
2 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ end
-- For example, the address 139.104.32.123 becomes { 139, 104, 32, 123 }.
-- @usage
-- 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
-- @param ip String representing an IPv4 or IPv6 address. Shortened notation
-- is permitted.

View File

@@ -46,7 +46,7 @@ end
-- This is Lua's <code>table.concat</code> function with the parameters
-- swapped for coherence.
-- @usage
-- strjoin(", ", {"Anna", "Bob", "Charlie", "Dolores"})
-- stdnse.strjoin(", ", {"Anna", "Bob", "Charlie", "Dolores"})
-- --> "Anna, Bob, Charlie, Dolores"
-- @param delimiter String to delimit each element of the list.
-- @param list Array of strings to concatenate.
@@ -59,7 +59,7 @@ end
--- Split a string at a given delimiter, which may be a pattern.
-- @usage
-- strsplit(",%s*", "Anna, Bob, Charlie, Dolores")
-- stdnse.strsplit(",%s*", "Anna, Bob, Charlie, Dolores")
-- --> { "Anna", "Bob", "Charlie", "Dolores" }
-- @param pattern Pattern that separates the desired strings.
-- @param text String to split.