We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868bee0 commit 1ecd378Copy full SHA for 1ecd378
README.md
@@ -734,6 +734,8 @@ Comparison:
734
735
##### `String#sub!` vs `String#gsub!` vs `String#[]=` [code](code/string/sub!-vs-gsub!-vs-[]=.rb)
736
737
+Note that `String#[]` will throw an `IndexError` when given string or regexp not matched.
738
+
739
```
740
$ ruby -v code/string/sub\!-vs-gsub\!-vs-\[\]\=.rb
741
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
0 commit comments