mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove a comment that no longer be true; 2cb6c27
This commit is contained in:
@@ -10,7 +10,6 @@ class String
|
||||
#
|
||||
# ISO 15.2.10.5.15
|
||||
def each_line(&block)
|
||||
# expect that str.index accepts an Integer for 1st argument as a byte data
|
||||
offset = 0
|
||||
while pos = self.index("\n", offset)
|
||||
block.call(self[offset, pos + 1 - offset])
|
||||
|
||||
Reference in New Issue
Block a user