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

ruby-changes:39425

From: zzak <ko1@a...>
Date: Sat, 8 Aug 2015 03:42:29 +0900 (JST)
Subject: [ruby-changes:39425] zzak:r51506 (trunk): * hash.c: [DOC] Improve description of symbol key syntax

zzak	2015-08-08 03:42:01 +0900 (Sat, 08 Aug 2015)

  New Revision: 51506

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

  Log:
    * hash.c: [DOC] Improve description of symbol key syntax
      Patch by Raphael Das Gupta in documenting-ruby/ruby#51:
      https://github.com/documenting-ruby/ruby/pull/51

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51505)
+++ ChangeLog	(revision 51506)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  8 03:39:33 2015  Zachary Scott  <zzak@r...>
+
+        * hash.c: [DOC] Improve description of symbol key syntax
+          Patch by Raphael Das Gupta in documenting-ruby/ruby#51:
+          https://github.com/documenting-ruby/ruby/pull/51
+
 Fri Aug  7 21:04:19 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (parser_params): turn in_def and in_single into bit
Index: hash.c
===================================================================
--- hash.c	(revision 51505)
+++ hash.c	(revision 51506)
@@ -3909,7 +3909,7 @@ env_update(VALUE env, VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L3909
  *
  *    grades = { "Jane Doe" => 10, "Jim Doe" => 6 }
  *
- *  Hashes allow an alternate syntax form when your keys are always symbols.
+ *  Hashes allow an alternate syntax for keys that are symbols.
  *  Instead of
  *
  *    options = { :font_size => 10, :font_family => "Arial" }

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

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