[前][次][番号順一覧][スレッド一覧]

ruby-changes:20998

From: naruse <ko1@a...>
Date: Wed, 24 Aug 2011 16:28:26 +0900 (JST)
Subject: [ruby-changes:20998] naruse:r33047 (trunk): Add a missing parenthesis in the example.

naruse	2011-08-24 16:28:12 +0900 (Wed, 24 Aug 2011)

  New Revision: 33047

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33047

  Log:
    Add a missing parenthesis in the example.

  Modified files:
    trunk/lib/uri/common.rb

Index: lib/uri/common.rb
===================================================================
--- lib/uri/common.rb	(revision 33046)
+++ lib/uri/common.rb	(revision 33047)
@@ -86,7 +86,7 @@
     #
     # == Examples
     #
-    #   p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
+    #   p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})")
     #   u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
     #   URI.parse(u.to_s) #=> raises URI::InvalidURIError
     #

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]