зеркало из https://github.com/github/ruby.git
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:
Родитель
adc32fd30c
Коммит
1b8f31409c
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 }
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче