]> gitweb.factorcode.org Git - factor.git/commitdiff
io.sockets, urls: move documentation for protocol-port
authorBjörn Lindqvist <bjourne@gmail.com>
Mon, 16 Sep 2013 12:48:07 +0000 (14:48 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 17 Sep 2013 00:31:37 +0000 (17:31 -0700)
basis/io/sockets/sockets-docs.factor
basis/urls/urls-docs.factor

index 7fae4677fa5c3e26f6c06bf7a3465a9ddaaad317..88b080534ffd9faf1c9fc80ac55502381665d9c9 100644 (file)
@@ -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 <inet4> [ ] 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." } ;
index 62c9683a9741ec3867a355201cf3d0696580afe7..31c845dcee754e9e14f7f7ecad5c789d8e4c51b8 100644 (file)
@@ -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 }