[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: Typo in example comment for recent string.c v 1.274 commit

From: Yukihiro Matsumoto <matz@...>
Date: 2006-09-21 01:12:27 UTC
List: ruby-core #8899
Hi,

In message "Re: Typo in example comment for recent string.c v 1.274 commit"
    on Thu, 21 Sep 2006 09:59:12 +0900, "Zev Blut" <rubyzbibd@ubit.com> writes:

|Hello,
|
|In the CVS commit for ruby/string.c v 1.274, I think there is a typo
|for the example of string.partition.
|
|I think this line should change from:
|
|  *     "hello".partition("x")         #=> ["helo", "", ""]
|
|to:
|
|  *     "hello".partition("x")         #=> ["hello", "", ""]

Indeed.  I fixed it.  In addition, I fixed one serious bug in
rpartition.

							matz.

In This Thread

Prev Next