]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/math/bits/bits-docs.factor
use radix literals
[factor.git] / basis / math / bits / bits-docs.factor
index 62ae38c8282c980833eafdcb55b99ed3c9e6019a..ecf53b6a08f025759971f8aa355a37659fbcc857 100644 (file)
@@ -24,7 +24,7 @@ HELP: make-bits
 { $values { "number" integer } { "bits" bits } }
 { $description "Creates a " { $link bits } " object out of the given number, using its log base 2 as the length. This implies that the last element, corresponding to the most significant bit, will be 1." }
 { $examples
-    { $example "USING: math.bits prettyprint arrays ;" "BIN: 1101 make-bits >array ." "{ t f t t }" }
+    { $example "USING: math.bits prettyprint arrays ;" "0b1101 make-bits >array ." "{ t f t t }" }
     { $example "USING: math.bits prettyprint arrays ;" "-3 make-bits >array ." "{ t f }" }
 } ;