summaryrefslogtreecommitdiff
path: root/libstd/cstrconv.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-30 18:07:58 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-30 18:07:58 -0800
commitf1432bf26c12fe0f005c81cf9401a531a55935f1 (patch)
tree2069ac437cf1b6ba3fb920b0546f905a1024ad1f /libstd/cstrconv.myr
parentcaec8e04bcf3ac9a47b5c191a331346ad0eaf51c (diff)
downloadmc-f1432bf26c12fe0f005c81cf9401a531a55935f1.tar.gz
Clean up C string conversion code a bit.
Diffstat (limited to 'libstd/cstrconv.myr')
-rw-r--r--libstd/cstrconv.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstd/cstrconv.myr b/libstd/cstrconv.myr
index a3e4877..d4d618e 100644
--- a/libstd/cstrconv.myr
+++ b/libstd/cstrconv.myr
@@ -7,8 +7,8 @@ const cstrconv = {buf
for i = 0; i < buf.len; i++
if buf[i] == 0
- break
+ -> buf[:i]
;;
;;
- -> buf[:i]
+ -> buf
}