diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-29 15:21:56 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-29 15:21:56 -0700 |
commit | 0a80e66f6e0976dd9f0ef88fe66e667a53db2456 (patch) | |
tree | 5b54d1092793ffb6c15367ebd3f70cc6e6a007e6 /apps | |
parent | d2578eedcfa4666b8243a1617dfe4bf1a8832f60 (diff) | |
download | mu-0a80e66f6e0976dd9f0ef88fe66e667a53db2456.tar.gz |
6431 - Mu function blocks can double as loops
Diffstat (limited to 'apps')
-rw-r--r-- | apps/browse.mu | 12 |
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 } |