hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit d2e5597389fa9d69c4319c5225aa9861933dc643
parent 4f5aa8ca2f055c3871f94997de1267491c572811
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 13:13:01 -0500

io::copy: style

Diffstat:
Mio/copy.ha | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/io/copy.ha b/io/copy.ha @@ -9,13 +9,11 @@ export fn copy(dest: *stream, src: *stream) (error | size) = { closed => break, * => return err, }, - n: size => { - match (write(dest, buf[..n])) { - err: error => return err, - size => { - w += n; - }, - }; + n: size => match (write(dest, buf[..n])) { + err: error => return err, + size => { + w += n; + }, }, }; };