diff options
Diffstat (limited to 'spec/ruby/core/string/setbyte_spec.rb')
-rw-r--r-- | spec/ruby/core/string/setbyte_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/string/setbyte_spec.rb b/spec/ruby/core/string/setbyte_spec.rb index f998e61622..3f2e03f8a8 100644 --- a/spec/ruby/core/string/setbyte_spec.rb +++ b/spec/ruby/core/string/setbyte_spec.rb @@ -54,7 +54,7 @@ describe "String#setbyte" do lambda { "?".setbyte(1, 97) }.should raise_error(IndexError) end - it "raises an IndexError if the nexgative index is greater magnitude than the String bytesize" do + it "raises an IndexError if the negative index is greater magnitude than the String bytesize" do lambda { "???".setbyte(-5, 97) }.should raise_error(IndexError) end |