From 9f0de403c5a87b361430af1defea46009799f6eb Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 27 Feb 2012 15:11:00 +0000 Subject: Paranoia: /^/ -> /\A/ in regexp in rdoc. Pointed out by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index cd8443b914..d53c3b4f34 100644 --- a/string.c +++ b/string.c @@ -6777,8 +6777,8 @@ rb_str_oct(VALUE str) * standard library function crypt(3) with the given * salt string. While the format and the result are system and * implementation dependent, using a salt matching the regular - * expression ^[a-zA-Z0-9./]{2} should be safe and valid - * on any platform, in which only the first two characters are + * expression \A[a-zA-Z0-9./]{2} should be valid and + * safe on any platform, in which only the first two characters are * significant. * * This method is for use in system specific scripts, so if you want -- cgit v1.2.3