summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-21 22:53:47 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-21 22:53:47 -0700
commit23223a7626a6ccea0598937a94d15709afd0eb20 (patch)
treea64f5736bb6e43bd0520169ec34cf947a1f1afa3 /libstd
parent980f6c7548c5917cef835c84c0aeb96773175785 (diff)
downloadmc-23223a7626a6ccea0598937a94d15709afd0eb20.tar.gz
Clear up comments.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/ipparse.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstd/ipparse.myr b/libstd/ipparse.myr
index f354687..17bc6f0 100644
--- a/libstd/ipparse.myr
+++ b/libstd/ipparse.myr
@@ -74,7 +74,7 @@ const ip6parse = {ip
;;
nseg = 0
for i = 0; ip.len > 0 && ok; i++
- /* parse ':num' */
+ /* parse 'num' segment */
(v, ip, ok) = num(ip, 0, 65536, 16, ':', ok)
nseg++
if ip.len == 0 || nseg == 8
@@ -105,6 +105,7 @@ const ip6parse = {ip
;;
}
+/* take "a:b::c:d" and expand it to "a:b:0:0:...:0:c:d" */
const expandsplit = {ip, split, len
var width