1
0
Fork 0
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:
stomar 2018-12-13 20:24:23 +00:00
parent adc32fd30c
commit 1b8f31409c

6
proc.c
View file

@ -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.
* Proc is an essential concept in Ruby and a core of its functional
* programming features.
@ -3247,9 +3247,9 @@ rb_method_compose_to_right(VALUE self, VALUE g)
*
* == 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 }
*