about summary refs log tree commit diff stats
path: root/076stream.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-22 11:53:20 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-22 11:53:20 -0800
commitc193f23217142a1ae365485f28cba9e1fb8aed15 (patch)
tree6132c6611dd49494015c819d13bf75f504260fb9 /076stream.mu
parent7136ddd5ac12d3aa4d516f719dea37a027a25b5a (diff)
downloadmu-c193f23217142a1ae365485f28cba9e1fb8aed15.tar.gz
2474 - overload 'copy' and 'equal' for text
2473 was the final bugfix holding this back.
Diffstat (limited to '076stream.mu')
-rw-r--r--076stream.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/076stream.mu b/076stream.mu
index 7306fa6b..e72d4e86 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 <- text-copy s, *idx, next-idx
+  result <- copy s, *idx, next-idx
   *idx <- add next-idx, 1  # skip newline
 ]