]> gitweb.factorcode.org Git - factor.git/blobdiff - core/math/parser/parser-docs.factor
minor cleanup to some docs.
[factor.git] / core / math / parser / parser-docs.factor
index fb200ce60c43fcc86f8fcf9527ba1dcec4c44d3c..9cefe5231990d807ea565ad88e56dd97a11a76bc 100644 (file)
@@ -44,7 +44,7 @@ HELP: digit>
 { $notes "This is one of the factors of " { $link string>number } "." } ;
 
 HELP: base>
-{ $values { "str" string } { "radix" "an integer between 2 and 16" } { "n/f" "a real number or " { $link f } } }
+{ $values { "str" string } { "radix" "an integer between 2 and 16" } { "n/f" { $maybe real } } }
 { $description "Creates a real number from a string representation with the given radix. The radix for floating point literals can be either base 10 or base 16."
 $nl
 "Outputs " { $link f } " if the string does not represent a number." } ;
@@ -52,7 +52,7 @@ $nl
 { >base base> } related-words
 
 HELP: string>number
-{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
+{ $values { "str" string } { "n/f" { $maybe real } } }
 { $description "Creates a real number from a string representation of a number in base 10."
 $nl
 "Outputs " { $link f } " if the string does not represent a number." } ;
@@ -60,7 +60,7 @@ $nl
 { string>number number>string } related-words
 
 HELP: bin>
-{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
+{ $values { "str" string } { "n/f" { $maybe real } } }
 { $description "Creates a real number from a string representation of a number in base 2."
 $nl
 "Outputs " { $link f } " if the string does not represent a number." } ;
@@ -68,7 +68,7 @@ $nl
 { >bin bin> .b } related-words
 
 HELP: oct>
-{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
+{ $values { "str" string } { "n/f" { $maybe real } } }
 { $description "Creates a real number from a string representation of a number in base 8."
 $nl
 "Outputs " { $link f } " if the string does not represent a number." } ;
@@ -76,7 +76,7 @@ $nl
 { >oct oct> .o } related-words
 
 HELP: hex>
-{ $values { "str" string } { "n/f" "a real number or " { $link f } } }
+{ $values { "str" string } { "n/f" { $maybe real } } }
 { $description "Creates a real number from a string representation of a number in base 16."
 $nl
 "Outputs " { $link f } " if the string does not represent a number." } ;