ref: f1432bf26c12fe0f005c81cf9401a531a55935f1
parent: caec8e04bcf3ac9a47b5c191a331346ad0eaf51c
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Dec 30 13:07:58 EST 2014
Clean up C string conversion code a bit.
--- a/libstd/cstrconv.myr
+++ b/libstd/cstrconv.myr
@@ -7,8 +7,8 @@
for i = 0; i < buf.len; i++
if buf[i] == 0
- break
+ -> buf[:i]
;;
;;
- -> buf[:i]
+ -> buf
}