hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 4558cf85dc83f3e8d1deffff7dd94cc4822df9da
parent f5ae516c1733cbf0cb14e38afba7270f78d215a0
Author: Ajay R <ar324@protonmail.com>
Date:   Mon, 21 Feb 2022 06:12:45 +0000

strings: fix iter documentation

Signed-off-by: Ajay R <ar324@protonmail.com>

Diffstat:
Mstrings/iter.ha | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/strings/iter.ha b/strings/iter.ha @@ -11,15 +11,15 @@ export type iterator = struct { // may copy the iterator to save its state. // // let iter = strings::iter("hi!"); -// iter::next(&iter); // 'h' -// iter::next(&iter); // 'i' +// strings::next(&iter); // 'h' +// strings::next(&iter); // 'i' // // // Copying the iterator copies its state: // let dup = iter; -// iter::next(&iter); // '!' -// iter::next(&iter); // void -// iter::next(&dup); // '!' -// iter::next(&dup); // void +// strings::next(&iter); // '!' +// strings::next(&iter); // void +// strings::next(&dup); // '!' +// strings::next(&dup); // void export fn iter(src: str) iterator = iterator { dec = utf8::decode(src), push = void,