summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter McLain <peter.mclain@gemstone.com>2010-03-29 13:05:57 -0700
committerPeter McLain <peter.mclain@gemstone.com>2010-03-29 13:05:57 -0700
commite67d46d87b5911d8e1a5cebbd9cbf37cca7b0a0f (patch)
treea5ab0889000b5aab67aeaeb228af2cd51b13c57e /lib
parent184439db603926332122033a46c3e8f149ff79b7 (diff)
downloadpsych-e67d46d87b5911d8e1a5cebbd9cbf37cca7b0a0f.zip
Fixed typos in comments
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb4
-rw-r--r--lib/psych/coder.rb2
-rw-r--r--lib/psych/tree_builder.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index eb13d19..574bc7e 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -109,7 +109,7 @@ module Psych
#
# Example:
#
- # Psych.load("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
+ # Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
#
# See Psych::Nodes for more information about YAML AST.
def self.parse yaml
@@ -136,7 +136,7 @@ module Psych
#
# Example:
#
- # Psych.load("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
+ # Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
#
# See Psych::Nodes for more information about YAML AST.
def self.parse_stream yaml
diff --git a/lib/psych/coder.rb b/lib/psych/coder.rb
index c9f9a18..79e46da 100644
--- a/lib/psych/coder.rb
+++ b/lib/psych/coder.rb
@@ -1,7 +1,7 @@
module Psych
###
# If an object defines +encode_with+, then an instance of Psych::Coder will
- # passed to the method when the object is being serialized. The Coder
+ # be passed to the method when the object is being serialized. The Coder
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
# called, respectively.
diff --git a/lib/psych/tree_builder.rb b/lib/psych/tree_builder.rb
index 6437a73..2b16290 100644
--- a/lib/psych/tree_builder.rb
+++ b/lib/psych/tree_builder.rb
@@ -3,7 +3,7 @@ require 'psych/handler'
module Psych
###
# This class works in conjunction with Psych::Parser to build an in-memory
- # parse tree tree that represents a YAML document.
+ # parse tree that represents a YAML document.
#
# == Example
#