]> gitweb.factorcode.org Git - factor.git/blobdiff - core/math/integers/integers-docs.factor
Update Windows for word renames, fix lint errors
[factor.git] / core / math / integers / integers-docs.factor
index 6f1dbece37a68bb30d4940db1c36bbe8d52f1c29..4ff4b11b83fde7b41e102612bb33c67fc1764ec6 100644 (file)
@@ -4,10 +4,10 @@ IN: math.integers
 ARTICLE: "integers" "Integers"
 { $subsections integer }
 "Integers come in two varieties -- fixnums and bignums. Fixnums fit in a machine word and are faster to manipulate; if the result of a fixnum operation is too large to fit in a fixnum, the result is upgraded to a bignum. Here is an example where two fixnums are multiplied yielding a bignum:"
-{ $example "USE: classes" "67108864 class ." "fixnum" }
-{ $example "USE: classes" "128 class ." "fixnum" }
+{ $example "USE: classes" "67108864 class-of ." "fixnum" }
+{ $example "USE: classes" "128 class-of ." "fixnum" }
 { $example "134217728 128 * ." "17179869184" }
-{ $example "USE: classes" "1 128 shift class ." "bignum" }
+{ $example "USE: classes" "1 128 shift class-of ." "bignum" }
 "Integers can be entered using a different base; see " { $link "syntax-numbers" } "."
 $nl
 "Integers can be tested for, and real numbers can be converted to integers:"