From 4464286aad205ccb077f3f927f146ef9de32782a Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 15 Jan 2014 23:09:08 +0900 Subject: [PATCH] Fix typo in README.markdown --- README.markdown | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.markdown b/README.markdown index eaaa6ba1..2f5e8b33 100644 --- a/README.markdown +++ b/README.markdown @@ -102,9 +102,9 @@ an instance variable inside that class: pry(Hello):1> ls -i instance variables: @x pry(Hello):1> cd @x - pry(20:2)> self + 10 + pry(20):2> self + 10 => 30 - pry(20:2)> cd .. + pry(20):2> cd .. pry(Hello):1> cd .. pry(main)> cd .. @@ -112,7 +112,7 @@ The number after the `:` in the pry prompt indicates the nesting level. To display more information about nesting, use the `nesting` command. E.g - pry("friend":3)> nesting + pry("friend"):3> nesting Nesting status: 0. main (Pry top level) 1. Hello @@ -123,7 +123,7 @@ command. E.g We can then jump back to any of the previous nesting levels by using the `jump-to` command: - pry("friend":3)> jump-to 1 + pry("friend"):3> jump-to 1 => 100 pry(Hello):1> @@ -224,7 +224,7 @@ In the following example we will enter the `Pry` class, list the instance methods beginning with 're' and display the source code for the `rep` method: pry(main)> cd Pry - pry(Pry)> ls -M --grep re + pry(Pry):1> ls -M --grep re Pry#methods: re readline refresh rep repl repl_epilogue repl_prologue retrieve_line pry(Pry):1> show-method rep -l @@ -256,9 +256,9 @@ Note that we can also view C methods (from Ruby Core) using the RETURN_ENUMERATOR(ary, 0, 0); result = rb_ary_new2(RARRAY_LEN(ary)); for (i = 0; i < RARRAY_LEN(ary); i++) { - if (RTEST(rb_yield(RARRAY_PTR(ary)[i]))) { - rb_ary_push(result, rb_ary_elt(ary, i)); - } + if (RTEST(rb_yield(RARRAY_PTR(ary)[i]))) { + rb_ary_push(result, rb_ary_elt(ary, i)); + } } return result; }