diff --git a/refm/api/src/strscan.rd b/refm/api/src/strscan.rd index 1377243e3f..21165ac044 100644 --- a/refm/api/src/strscan.rd +++ b/refm/api/src/strscan.rd @@ -189,14 +189,14 @@ selfを返します。 require 'strscan' s = StringScanner.new('test') # => # -s.match(/\w(\w*)/) # => "test" +s.scan(/\w(\w*)/) # => "test" s[0] # => "test" s[1] # => "est" s << ' string' # => # s[0] # => "test" s[1] # => "est" -s.match(/\s+/) # => " " -s.match(/\w+/) # => "string" +s.scan(/\s+/) # => " " +s.scan(/\w+/) # => "string" #@end この操作は StringScanner.new に渡した文字列にも影響することがあります。