about summary refs log tree commit diff stats
path: root/http-client.mu
diff options
context:
space:
mode:
Diffstat (limited to 'http-client.mu')
-rw-r--r--http-client.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/http-client.mu b/http-client.mu
index b7fa8b30..8c781e5f 100644
--- a/http-client.mu
+++ b/http-client.mu
@@ -4,17 +4,17 @@ def main [
   local-scope
   google:&:source:char <- start-reading-from-network 0/real-resources, [google.com], [/]
   n:num <- copy 0
-  b:&:buffer <- new-buffer 30
+  buf:&:buffer <- new-buffer 30
   {
     c:char, done?:bool <- read google
     break-if done?
     n <- add n, 1
-    b <- append b, c
+    buf <- append buf, c
 #?     trunc?:bool <- greater-or-equal n, 10000
 #?     loop-unless trunc?
     loop
   }
-  result:text <- buffer-to-array b
+  result:text <- buffer-to-array buf
   open-console
   len:num <- length *result
   print 0/real-screen, result