Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fix small typo in stringio.co #65

Closed
wants to merge 1 commit into from

2 participants

Nick Howard Urabe, Shyouhei
Nick Howard

s/legnth/length/ in negative length error message.

Urabe, Shyouhei

Applied. Thank you!

Sandor Szücs szuecs referenced this pull request from a commit in szuecs/ruby
Nobuyoshi Nakada nobu * ext/stringio/stringio.c (strio_truncate): fix typo. patched by
  Nick Howard <ndh AT baroquebobcat.com>.
  ruby#65

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5c68e60
Aaron Patterson tenderlove referenced this pull request from a commit in tenderlove/ruby
Nobuyoshi Nakada nobu * ext/stringio/stringio.c (strio_truncate): fix typo. patched by
  Nick Howard <ndh AT baroquebobcat.com>.
  ruby#65

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0ea3b02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 11, 2011
  1. Nick Howard

    fix small typo in stringio.co

    baroquebobcat authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 1  ext/stringio/stringio.c
2  ext/stringio/stringio.c
View
@@ -1341,7 +1341,7 @@ strio_truncate(VALUE self, VALUE len)
long l = NUM2LONG(len);
long plen = RSTRING_LEN(string);
if (l < 0) {
- error_inval("negative legnth");
+ error_inval("negative length");
}
rb_str_resize(string, l);
if (plen < l) {
Something went wrong with that request. Please try again.