From 2126364501dc332f18b9679c47fc2f855f9d5849 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 21 Dec 2006 16:47:01 +0000 Subject: [PATCH] * string.c (rb_str_ord): typo fixed. reported from Kornelius Kalnbach . [ruby-core:09621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ string.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 20e2f99401..5433d4205e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -166,6 +166,11 @@ Fri Dec 1 16:31:53 2006 Hidetoshi NAGAI * ext/tk/tcltklib.c: shouldn't run the killed thread at callback. [ruby-talk: 227408] +Mon Nov 27 09:00:15 2006 Yukihiro Matsumoto + + * string.c (rb_str_ord): typo fixed. reported from Kornelius + Kalnbach . [ruby-core:09621] + Sun Nov 26 16:36:46 2006 URABE Shyouhei * version.h: addition of RUBY_PATCHLEVEL. 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;