From 1ac05b91e5b48aad1c90ef52af8a0f3d7c2c1c5b Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Fri, 26 Aug 2011 15:35:47 -0700 Subject: Fix typos and grammar mistakes. Patch by Luke Gruber. [Ruby 1.9 - Bug 35203] --- lib/json.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/json.rb') 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\"}" # # JSON.generate only allows objects or arrays to be converted -# to JSON syntax. While to_json accepts many Ruby classes -# even though it only acts a method for serialization: +# to JSON syntax. to_json, however, accepts many Ruby classes +# even though it acts only as a method for serialization: # # require 'json' # -- cgit v1.2.1