~ chicken-core (master) 42598e27d3394347d3586939ae330e81be51fbfe
commit 42598e27d3394347d3586939ae330e81be51fbfe
Author: Kristian Lein-Mathisen <kristianlein@gmail.com>
AuthorDate: Wed Sep 2 20:17:53 2026 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Thu Sep 3 10:50:35 2026 +0200
manual: fix nested #u8 example code
- 0xabcd => #xabcd
- remove \ in #\xab (that makes them characters)
- using uppercase hex letters for, hopefully, improved traceability
Signed-off-by: felix <felix@call-with-current-continuation.org>
diff --git a/manual/Module (chicken number-vector) b/manual/Module (chicken number-vector)
index 1778aaba..9c110260 100644
--- a/manual/Module (chicken number-vector)
+++ b/manual/Module (chicken number-vector)
@@ -111,11 +111,11 @@ are interpreted as UTF-8. Embedded bytevectors or numerical vectors are
spliced directly into the result, without further translation. Lists are
spliced as well, recursively, so:
- '#u8(1 (2) ((3)) #u16(0xabcd))
+ '#u8(1 #;header (2 #;lengths (3 4) #u16(#xABCD)) )
will result in
- #u8(1 2 3 #\xcd #\xab)
+ #u8(1 2 3 4 #xCD #xAB)
on a little endian machine.
Trap