aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-10-18 19:04:12 -0400
committerDave Gauer <dave@ratfactor.com>2021-10-18 19:04:12 -0400
commit4147a9a39b362468cc6f16c8ce751ee3481321f4 (patch)
treefb943763fbd1b55838aee2334d36c569dd3b9341 /patches
parent85cd82e673bc635b71de271e64c0d2ceb6f3a9ea (diff)
downloadziglings-4147a9a39b362468cc6f16c8ce751ee3481321f4.tar.gz
ziglings-4147a9a39b362468cc6f16c8ce751ee3481321f4.tar.bz2
ziglings-4147a9a39b362468cc6f16c8ce751ee3481321f4.tar.xz
ziglings-4147a9a39b362468cc6f16c8ce751ee3481321f4.zip
Removed confusing explanation from 076
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/076_sentinels.patch20
1 files changed, 18 insertions, 2 deletions
diff --git a/patches/patches/076_sentinels.patch b/patches/patches/076_sentinels.patch
index 5c757aa..ccc8622 100644
--- a/patches/patches/076_sentinels.patch
+++ b/patches/patches/076_sentinels.patch
@@ -1,8 +1,24 @@
-86c86
+38,40d37
+< // Important: the sentinel value must be of the same type as the
+< // data being terminated!
+< //
+56c53
+< // numbers that both ends in and CONTAINS the sentinel value.
+---
+> // numbers that both ends in and CONTAINS the sentinal value.
+62,63c59,62
+< // the sentinel 0 in the middle. The many-item pointer stops
+< // at the first sentinel value.)
+---
+> // the sentinel 0 in the middle. The many-item pointer must
+> // stop at the first sentinel value. The difference is simply
+> // that arrays have a known length and many-item pointers
+> // don't.)
+84c83
< for (???) |s| {
---
> for (my_seq) |s| {
-98c98
+96c95
< while (??? != my_sentinel) {
---
> while (my_seq[i] != my_sentinel) {