summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 06:41:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-12 06:41:05 +0000
commit5c68e601e89d3a6959ede99de1bf0565a7632529 (patch)
tree78594f621f6e27bf57110efd3ba1fc9329c95ac4 /ext
parente48c8be89b6324d817e46e3feadfc207226d93a6 (diff)
* ext/stringio/stringio.c (strio_truncate): fix typo. patched by
Nick Howard <ndh AT baroquebobcat.com>. https://github.com/ruby/ruby/pull/65 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/stringio/stringio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 5aa2d27ef3..ad18644a43 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -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) {