From ce50af21af3d23e292b73f955a8b12ea9c2038e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Przeniczny?= Date: Sun, 24 Nov 2019 23:08:16 +0100 Subject: [PATCH] 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. --- proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proc.c b/proc.c index e0ce44297c..11449400ed 100644 --- a/proc.c +++ b/proc.c @@ -3362,8 +3362,8 @@ rb_proc_compose_to_left(VALUE self, VALUE g) * prc >> g -> a_proc * * Returns a proc that is the composition of this proc and the given g. - * The returned proc takes a variable number of arguments, calls g with them - * then calls this proc with the result. + * The returned proc takes a variable number of arguments, calls this proc with them + * then calls g with the result. * * f = proc {|x| x * x } * g = proc {|x| x + x }