Fix typo in README.markdown

This commit is contained in:
yui-knk 2014-01-15 23:09:08 +09:00
parent 34b25ef03d
commit 4464286aad
1 changed files with 8 additions and 8 deletions

View File

@ -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;
}