diff --git a/basis/io/sockets/sockets-docs.factor b/basis/io/sockets/sockets-docs.factor index 7fae4677fa..88b080534f 100644 --- a/basis/io/sockets/sockets-docs.factor +++ b/basis/io/sockets/sockets-docs.factor @@ -1,5 +1,5 @@ USING: help.markup help.syntax io io.backend threads -strings byte-arrays continuations destructors quotations ; +strings byte-arrays continuations destructors quotations math ; IN: io.sockets ARTICLE: "network-addressing" "Address specifiers" @@ -233,3 +233,7 @@ HELP: with-local-address } { $code "\"192.168.0.1\" 23000 [ ] with-local-address" } } ; + +HELP: protocol-port +{ $values { "protocol" "a protocol string" } { "port" { $maybe integer } } } +{ $description "Outputs the port number associated with a protocol, or " { $link f } " if the protocol is unknown." } ; diff --git a/basis/urls/urls-docs.factor b/basis/urls/urls-docs.factor index 62c9683a97..31c845dcee 100644 --- a/basis/urls/urls-docs.factor +++ b/basis/urls/urls-docs.factor @@ -87,10 +87,6 @@ HELP: parse-host } } ; -HELP: protocol-port -{ $values { "protocol" "a protocol string" } { "port" { $maybe integer } } } -{ $description "Outputs the port number associated with a protocol, or " { $link f } " if the protocol is unknown." } ; - HELP: query-param { $values { "url" url } { "key" string }