]> gitweb.factorcode.org Git - factor.git/commitdiff
syntax: correct documentation for ratio syntax
authorJoe Groff <arcata@gmail.com>
Wed, 19 May 2010 01:59:35 +0000 (18:59 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 19 May 2010 01:59:54 +0000 (18:59 -0700)
core/syntax/syntax-docs.factor

index 035ac1454b04994923cc0aa6afe62519cbc9bf6a..512e2de61a896500faba02096b13a82639262422 100644 (file)
@@ -54,15 +54,15 @@ ARTICLE: "syntax-integers" "Integer syntax"
 "More information on integers can be found in " { $link "integers" } "." ;
 
 ARTICLE: "syntax-ratios" "Ratio syntax"
-"The printed representation of a ratio is a pair of integers separated by a slash (/), prefixed by an optional whole number part followed by a plus (+). No intermediate whitespace is permitted. Here are some examples:"
+"The printed representation of a ratio is a pair of integers separated by a slash (" { $snippet "/" } "). A ratio can also be written as a proper fraction by following an integer part with " { $snippet "+" } " or " { $snippet "-" } " (matching the sign of the integer) and a ratio. No intermediate whitespace is permitted within a ratio literal. Here are some examples:"
 { $code
     "75/33"
     "1/10"
     "-5/-6"
     "1+1/3"
-    "-10+1/7"
+    "-10-1/7"
 }
-"More information on ratios can be found in " { $link "rationals" } ;
+"More information on ratios can be found in " { $link "rationals" } "." ;
 
 ARTICLE: "syntax-floats" "Float syntax"
 "Floating point literals are specified when a literal number contains a decimal point or exponent. Exponents are marked by an " { $snippet "e" } " or " { $snippet "E" } ":"