summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-21 16:47:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-21 16:47:01 +0000
commit2126364501dc332f18b9679c47fc2f855f9d5849 (patch)
treec1ba20bf2e541643bef9f131d37a38222e9847ce /string.c
parent2b38c2e0fbd96eb4f0049dfb6c4f923ba84bd33d (diff)
* string.c (rb_str_ord): typo fixed. reported from Kornelius
Kalnbach <murphy@rubychan.de>. [ruby-core:09621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 571be92069..9116fe55f7 100644
--- a/string.c
+++ b/string.c
@@ -4251,7 +4251,7 @@ rb_str_ord(VALUE s)
if (RSTRING_LEN(s) != 1) {
rb_raise(rb_eTypeError,
- "expacted a characer, but string of size %ld given",
+ "expected a character, but string of size %ld given",
RSTRING_LEN(s));
}
c = RSTRING_PTR(s)[0] & 0xff;