summaryrefslogtreecommitdiff
path: root/lib/json.rb
diff options
context:
space:
mode:
authorEric Hodel <drbrain@segment7.net>2011-08-26 15:35:47 -0700
committerEric Hodel <drbrain@segment7.net>2011-08-26 15:35:47 -0700
commit1ac05b91e5b48aad1c90ef52af8a0f3d7c2c1c5b (patch)
tree6f2ae103ef4830af45f8d21cd0b03d6e9bbddb4d /lib/json.rb
parentcc913954e16d1b627d98d691f3c1b04df64365b2 (diff)
downloadjson-1ac05b91e5b48aad1c90ef52af8a0f3d7c2c1c5b.tar.gz
Fix typos and grammar mistakes. Patch by Luke Gruber. [Ruby 1.9 - Bug 35203]
Diffstat (limited to 'lib/json.rb')
-rw-r--r--lib/json.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/json.rb b/lib/json.rb
index d7bc1a2..00fe4ca 100644
--- a/lib/json.rb
+++ b/lib/json.rb
@@ -7,13 +7,13 @@
#
# Built on two universally available structures:
# 1. A collection of name/value pairs. Often referred to as an _object_, hash table, record, struct, keyed list, or associative array.
-# 2. An orderd list of values. More commonly named as an _array_, vector, sequence, or list.
+# 2. An ordered list of values. More commonly called an _array_, vector, sequence or list.
#
# To read more about JSON visit: http://json.org
#
# == Parsing JSON
#
-# To parse a JSON string received by another application, or generated within
+# To parse a JSON string received by another application or generated within
# your existing application:
#
# require 'json'
@@ -42,8 +42,8 @@
# puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
#
# <tt>JSON.generate</tt> only allows objects or arrays to be converted
-# to JSON syntax. While <tt>to_json</tt> accepts many Ruby classes
-# even though it only acts a method for serialization:
+# to JSON syntax. <tt>to_json</tt>, however, accepts many Ruby classes
+# even though it acts only as a method for serialization:
#
# require 'json'
#