mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
proc.c: [DOC] fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
adc32fd30c
commit
1b8f31409c
1 changed files with 3 additions and 3 deletions
6
proc.c
6
proc.c
|
@ -3219,7 +3219,7 @@ rb_method_compose_to_right(VALUE self, VALUE g)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* +Proc+ object is an incapsulation of a block of code, that can be stored
|
* A +Proc+ object is an incapsulation of a block of code, that can be stored
|
||||||
* in local variables, passed to methods and other procs and called.
|
* in local variables, passed to methods and other procs and called.
|
||||||
* Proc is an essential concept in Ruby and a core of its functional
|
* Proc is an essential concept in Ruby and a core of its functional
|
||||||
* programming features.
|
* programming features.
|
||||||
|
@ -3247,9 +3247,9 @@ rb_method_compose_to_right(VALUE self, VALUE g)
|
||||||
*
|
*
|
||||||
* == Creation
|
* == Creation
|
||||||
*
|
*
|
||||||
* There are several methods to create proc
|
* There are several methods to create procs
|
||||||
*
|
*
|
||||||
* * Just use Proc class constructor
|
* * Just use Proc class constructor:
|
||||||
*
|
*
|
||||||
* proc1 = Proc.new {|x| x**2 }
|
* proc1 = Proc.new {|x| x**2 }
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue