summaryrefslogtreecommitdiff
path: root/ext/strscan
diff options
context:
space:
mode:
Diffstat (limited to 'ext/strscan')
-rw-r--r--ext/strscan/strscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 490689b3d2..f7101823f5 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -353,9 +353,9 @@ strscan_concat(VALUE self, VALUE str)
}
/*
- * Returns the position of the scan pointer. In the 'reset' position, this
+ * Returns the byte position of the scan pointer. In the 'reset' position, this
* value is zero. In the 'terminated' position (i.e. the string is exhausted),
- * this value is the length of the string.
+ * this value is the bytesize of the string.
*
* In short, it's a 0-based index into the string.
*
@@ -378,7 +378,7 @@ strscan_get_pos(VALUE self)
/*
* call-seq: pos=(n)
*
- * Modify the scan pointer.
+ * Set the byte position of the scan pointer.
*
* s = StringScanner.new('test string')
* s.pos = 7 # -> 7