]> gitweb.factorcode.org Git - factor.git/blobdiff - core/io/binary/binary-docs.factor
use radix literals
[factor.git] / core / io / binary / binary-docs.factor
index 443de70132046645ac5b6030c549ab78274e83c3..250f4e2880220be130ec8a365332f434b8484edd 100644 (file)
@@ -6,7 +6,7 @@ ARTICLE: "stream-binary" "Working with binary data"
 $nl
 "There are two ways to order the bytes making up an integer; " { $emphasis "little endian" } " byte order outputs the least significant byte first, and the most significant byte last, whereas " { $emphasis "big endian" } " is the other way around."
 $nl
-"Consider the hexadecimal integer " { $snippet "HEX: cafebabe" } ". Little endian byte order yields the following sequence of bytes:"
+"Consider the hexadecimal integer " { $snippet "0xcafebabe" } ". Little endian byte order yields the following sequence of bytes:"
 { $table
     { "Byte:" "1" "2" "3" "4" }
     { "Value:" { $snippet "be" } { $snippet "ba" } { $snippet "fe" } { $snippet "ca" } }