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

ruby-changes:38765

From: hsbt <ko1@a...>
Date: Fri, 12 Jun 2015 18:21:08 +0900 (JST)
Subject: [ruby-changes:38765] hsbt:r50846 (trunk): * sample/exyacc.rb: Fix some typos.

hsbt	2015-06-12 18:20:44 +0900 (Fri, 12 Jun 2015)

  New Revision: 50846

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

  Log:
    * sample/exyacc.rb: Fix some typos.
    * sample/list.rb: ditto.
    * sample/trick2013/kinaba/remarks.markdown: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/sample/exyacc.rb
    trunk/sample/list.rb
    trunk/sample/trick2013/kinaba/remarks.markdown
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50845)
+++ ChangeLog	(revision 50846)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun 12 18:20:37 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* sample/exyacc.rb: Fix some typos.
+	* sample/list.rb: ditto.
+	* sample/trick2013/kinaba/remarks.markdown: ditto.
+
 Fri Jun 12 17:34:14 2015  Wojciech Mach  <wojtek@w...>
 
 	* hash.c (rb_hash_fetch_values): add `Hash#fetch_values`.
Index: sample/list.rb
===================================================================
--- sample/list.rb	(revision 50845)
+++ sample/list.rb	(revision 50846)
@@ -76,6 +76,6 @@ $list2.add_to_list(20) https://github.com/ruby/ruby/blob/trunk/sample/list.rb#L76
 $list2.add_to_list(Point.new(4, 5))
 $list2.add_to_list($list1)
 
-# parenthesises around method arguments can be ommitted unless ambiguous.
+# parenthesises around method arguments can be omitted unless ambiguous.
 print "list1:\n", $list1, "\n"
 print "list2:\n", $list2, "\n"
Index: sample/trick2013/kinaba/remarks.markdown
===================================================================
--- sample/trick2013/kinaba/remarks.markdown	(revision 50845)
+++ sample/trick2013/kinaba/remarks.markdown	(revision 50846)
@@ -18,11 +18,11 @@ The program contains each ASCII characte https://github.com/ruby/ruby/blob/trunk/sample/trick2013/kinaba/remarks.markdown#L18
 
 The algorthim is the obvious loop "32.upto(126){|x| putc x}".
 
-It is not so hard to transform it to use each character *at most once*. Only the slight difficulty comes from the constraint that we cannot "declare and then use" variables, because then the code will contain the variable name twice. This restriction is worked around by the $. global variable, the best friend of Ruby golfers.
+It is not so hard to transform it to use each character *at most once*. The only slight difficulty comes from the constraint that we cannot "declare and then use" variables, because then the code will contain the variable name twice. This restriction is worked around by the $. global variable, the best friend of Ruby golfers.
 
-The relatively interesting part is to use all the charcters *at least once*. Of course, this is easily accomplished by putting everything into a comment (i.e., #unsed...) or to a string literal (%(unused...), note that normal string literals are forbidden since they use quotation marks twice). Hey, but that's not fun at all! I tried to minimize the escapeway.
+The relatively interesting part is to use all the charcters *at least once*. Of course, this is easily accomplished by putting everything into a comment (i.e., #unused...) or to a string literal (%(unused...), note that normal string literals are forbidden since they use quotation marks twice). Hey, but that's not fun at all! I tried to minimize the escapeway.
 
-* "@THEqQUICKbBROWNfFXjJMPSvVLAZYDGgkyz". Trash box of unused alphabet. I with I could have used "gkyz" somewhere else.
+* "@THEqQUICKbBROWNfFXjJMPSvVLAZYDGgkyz". Trash box of unused alphabet. I wish I could have used "gkyz" somewhere else.
 
 * "%r{\"}mosx". Regex literal, with %-syntax. I don't even know what each m,o,s,x means...
 
Index: sample/exyacc.rb
===================================================================
--- sample/exyacc.rb	(revision 50845)
+++ sample/exyacc.rb	(revision 50846)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/sample/exyacc.rb#L1
 #! /usr/local/bin/ruby -Kn
 # usage: exyacc.rb [yaccfiles]
-# this is coverted from exyacc.pl in the camel book
+# this is covered from exyacc.pl in the camel book
 
 ARGF.each(nil) do |source|
   sbeg = source.index("\n%%") + 1

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

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