about summary refs log tree commit diff stats
path: root/066stream.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-12 00:06:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-12 00:38:36 -0700
commitea19d0dc2c11f48ca384fb087b4e44ef400bfaa2 (patch)
treeba204ece67397481a3104f4c7c1d6a0f3ad271f7 /066stream.mu
parentec1cd4ae38f283970a401354a1ec17823fa0b7da (diff)
downloadmu-ea19d0dc2c11f48ca384fb087b4e44ef400bfaa2.tar.gz
3337 - first use of type abbreviations: text
In the process I've uncover a couple of situations we don't support type
abbreviations yet. They're next.
Diffstat (limited to '066stream.mu')
-rw-r--r--066stream.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/066stream.mu b/066stream.mu
index cd99e882..bf0d1845 100644
--- a/066stream.mu
+++ b/066stream.mu
@@ -41,7 +41,7 @@ def peek in:address:stream:_elem -> result:_elem, empty?:boolean [
   load-ingredients
   empty?:boolean <- copy 0/false
   idx:number <- get *in, index:offset
-  s:address:array:character <- get *in, data:offset
+  s:address:array:_elem <- get *in, data:offset
   len:number <- length *s
   at-end?:boolean <- greater-or-equal idx len
   {
@@ -56,7 +56,7 @@ def read-line in:address:stream:character -> result:address:array:character, in:
   local-scope
   load-ingredients
   idx:number <- get *in, index:offset
-  s:address:array:character <- get *in, data:offset
+  s:text <- get *in, data:offset
   next-idx:number <- find-next s, 10/newline, idx
   result <- copy-range s, idx, next-idx
   idx <- add next-idx, 1  # skip newline