summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-12 09:20:44 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-12 09:20:44 +0000
commita45972f2a89d4b8c2b6c346a547140e8c3a4218d (patch)
tree683f24210b85c9c0640f67328c91819ab6ab01cc
parent86eaa24570a7a062cf8f08606256e0cd23d2b980 (diff)
* sample/exyacc.rb: Fix some typos.
* sample/list.rb: ditto. * sample/trick2013/kinaba/remarks.markdown: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--sample/exyacc.rb2
-rw-r--r--sample/list.rb2
-rw-r--r--sample/trick2013/kinaba/remarks.markdown6
4 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index d3fcbfc..c9971ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jun 12 18:20:37 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
+
+ * 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@wojtekmach.pl>
* hash.c (rb_hash_fetch_values): add `Hash#fetch_values`.
diff --git a/sample/exyacc.rb b/sample/exyacc.rb
index 7b37a8b..9a9435a 100644
--- a/sample/exyacc.rb
+++ b/sample/exyacc.rb
@@ -1,6 +1,6 @@
#! /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
diff --git a/sample/list.rb b/sample/list.rb
index 85899ce..b4d1d65 100644
--- a/sample/list.rb
+++ b/sample/list.rb
@@ -76,6 +76,6 @@ $list2.add_to_list(20)
$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"
diff --git a/sample/trick2013/kinaba/remarks.markdown b/sample/trick2013/kinaba/remarks.markdown
index e35550e..a454a5f 100644
--- a/sample/trick2013/kinaba/remarks.markdown
+++ b/sample/trick2013/kinaba/remarks.markdown
@@ -18,11 +18,11 @@ The program contains each ASCII character from 0x20 ' ' to 0x7e '~' exactly once
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...