[ruby-cvs:78324] ce50af21af (master): Fix the docs for Proc#>>.
Unknown <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Paweł Przeniczny 2019-11-25 07:08:16 +0900 (Mon, 25 Nov 2019)
New Revision: ce50af21af
https://github.com/ruby/ruby/commit/ce50af21af
Log:
Fix the docs for Proc#>>.
The docs are wrong about the behaviour of `#>>` (looks like it was copied from `#<<`)
In `(prc >> g).call(n)` _prc_ is called first (with _n_), *then* _g_ is called with the result.
Code examples are OK.
Modified files:
proc.c