about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-29 15:21:56 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-29 15:21:56 -0700
commit0a80e66f6e0976dd9f0ef88fe66e667a53db2456 (patch)
tree5b54d1092793ffb6c15367ebd3f70cc6e6a007e6 /apps
parentd2578eedcfa4666b8243a1617dfe4bf1a8832f60 (diff)
downloadmu-0a80e66f6e0976dd9f0ef88fe66e667a53db2456.tar.gz
6431 - Mu function blocks can double as loops
Diffstat (limited to 'apps')
-rw-r--r--apps/browse.mu12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/browse.mu b/apps/browse.mu
index 7b7e329a..307ca81c 100644
--- a/apps/browse.mu
+++ b/apps/browse.mu
@@ -24,11 +24,9 @@ fn load-file filename: (addr array byte) -> out/eax: (addr buffered-file) {
 }
 
 fn dump in: (addr buffered-file) {
-  {
-    var c/eax: byte <- read-byte-buffered in
-    compare c, 0xffffffff  # EOF marker
-    break-if-=
-    print-byte c
-    loop
-  }
+  var c/eax: byte <- read-byte-buffered in
+  compare c, 0xffffffff  # EOF marker
+  break-if-=
+  print-byte c
+  loop
 }