diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-01-12 22:10:38 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-01-12 22:10:38 -0800 |
commit | 802283e450b7a8b14b1730358ecb9473ef074147 (patch) | |
tree | ede5bef292934514c9cf149636760888badedbe0 /076stream.mu | |
parent | 0fac1f87339709e9e3ef8d2df2dbd88ba8c8d706 (diff) | |
download | mu-802283e450b7a8b14b1730358ecb9473ef074147.tar.gz |
2559 - stop using 'next-ingredient' explicitly
I still need it in some situations because I have no way to set a non-zero default for an optional ingredient. Open question..
Diffstat (limited to '076stream.mu')
-rw-r--r-- | 076stream.mu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/076stream.mu b/076stream.mu index e72d4e86..be60d855 100644 --- a/076stream.mu +++ b/076stream.mu @@ -27,7 +27,7 @@ recipe read-line in:address:stream -> result:address:array:character, in:address idx:address:number <- get-address *in, index:offset s:address:array:character <- get *in, data:offset next-idx:number <- find-next s, 10/newline, *idx - result <- copy s, *idx, next-idx + result <- copy-range s, *idx, next-idx *idx <- add next-idx, 1 # skip newline ] |