diff --git a/nselib/ipOps.lua b/nselib/ipOps.lua index 129add562..3c7f5c0de 100644 --- a/nselib/ipOps.lua +++ b/nselib/ipOps.lua @@ -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. diff --git a/nselib/stdnse.lua b/nselib/stdnse.lua index ae15c31b6..68bf264c3 100644 --- a/nselib/stdnse.lua +++ b/nselib/stdnse.lua @@ -46,7 +46,7 @@ end -- This is Lua's table.concat 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.