]> gitweb.factorcode.org Git - factor.git/commitdiff
math: fix docs for binary printing.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 31 Mar 2016 14:46:05 +0000 (07:46 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 31 Mar 2016 14:46:14 +0000 (07:46 -0700)
core/math/math-docs.factor

index 411f827c3be3d19d5e86e8c24437cd815d96d03a..a9920f74b57a63ee1fe33d967f51d096f0257bd2 100644 (file)
@@ -176,7 +176,7 @@ HELP: bitxor
 HELP: shift
 { $values { "x" integer } { "n" integer } { "y" integer } }
 { $description "Shifts " { $snippet "x" } " to the left by " { $snippet "n" } " bits if " { $snippet "n" } " is positive, or " { $snippet "-n" } " bits to the right if " { $snippet "n" } " is negative. A left shift of a fixnum may overflow, yielding a bignum. A right shift may result in bits “falling off” the right hand side and being discarded." }
-{ $examples { $example "USING: math prettyprint ;" "0b101 5 shift .b" "0b10100000" } { $example "USING: math prettyprint ;" "0b11111 -2 shift .b" "111" } } ;
+{ $examples { $example "USING: math prettyprint ;" "0b101 5 shift .b" "0b10100000" } { $example "USING: math prettyprint ;" "0b11111 -2 shift .b" "0b111" } } ;
 
 HELP: bitnot
 { $values { "x" integer } { "y" integer } }