summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--array.c2
-rw-r--r--doc/syntax/pattern_matching.rdoc2
-rw-r--r--hash.c2
-rw-r--r--object.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/array.c b/array.c
index 967659d7fd..5a4daf3e73 100644
--- a/array.c
+++ b/array.c
@@ -5084,7 +5084,7 @@ rb_ary_concat(VALUE x, VALUE y)
* When string argument +string_separator+ is given,
* equivalent to <tt>self.join(string_separator)</tt>:
*
- * [0, [0, 1], {foo: 0}] * ', ' # => "0, 0, 1, {:foo=>0}"
+ * [0, [0, 1], {foo: 0}] * ', ' # => "0, 0, 1, {foo: 0}"
*
*/
diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc
index 6a30380f46..0b37ebdda7 100644
--- a/doc/syntax/pattern_matching.rdoc
+++ b/doc/syntax/pattern_matching.rdoc
@@ -247,7 +247,7 @@ The "rest" part of a pattern also can be bound to a variable:
else
"not matched"
end
- #=> "matched: 1, {:b=>2, :c=>3}"
+ #=> "matched: 1, {b: 2, c: 3}"
Binding to variables currently does NOT work for alternative patterns joined with <code>|</code>:
diff --git a/hash.c b/hash.c
index d48c763cd2..ddbc01e5e2 100644
--- a/hash.c
+++ b/hash.c
@@ -3490,7 +3490,7 @@ inspect_hash(VALUE hash, VALUE dummy, int recur)
* Returns a new String containing the hash entries:
* h = {foo: 0, bar: 1, baz: 2}
- * h.inspect # => "{:foo=>0, :bar=>1, :baz=>2}"
+ * h.inspect # => "{foo: 0, bar: 1, baz: 2}"
*
*/
diff --git a/object.c b/object.c
index 4a9eb81d02..8a33c828fe 100644
--- a/object.c
+++ b/object.c
@@ -3827,7 +3827,7 @@ rb_String(VALUE val)
*
* String([0, 1, 2]) # => "[0, 1, 2]"
* String(0..5) # => "0..5"
- * String({foo: 0, bar: 1}) # => "{:foo=>0, :bar=>1}"
+ * String({foo: 0, bar: 1}) # => "{foo: 0, bar: 1}"
*
* Raises +TypeError+ if +object+ cannot be converted to a string.
*/