summaryrefslogtreecommitdiffhomepage
path: root/mrblib/string.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-09-23 00:01:19 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-09-23 00:01:39 +0900
commit418eec2c7d14197b3fac80957f6d45c92dd80942 (patch)
treeb5ff260c6dff08682f22ef78882c4fdd2755844b /mrblib/string.rb
parent2cb6c2778134575e425cd5d1bdef036100a25d0d (diff)
downloadmruby-418eec2c7d14197b3fac80957f6d45c92dd80942.tar.gz
mruby-418eec2c7d14197b3fac80957f6d45c92dd80942.zip
remove a comment that no longer be true; 2cb6c27
Diffstat (limited to 'mrblib/string.rb')
-rw-r--r--mrblib/string.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb
index 7209f03d2..37441ec98 100644
--- a/mrblib/string.rb
+++ b/mrblib/string.rb
@@ -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])