Programming Ruby 3.2 (5th Edition): B2.0 page 311, to --> of ? + of + of type String

@noelrappin

page 311, third paragraph after the code, line 3 : to instead of of ?

optionally specify the parameters to the method, and you must specify the return value to
                                                                                -----> ^^
the method.

the return value of the method” sounds better.

+++++ next paragraph, line 2 : methods should be singular, as in the third line (the type of the method)

arguments, the keys of which are the names of each parameter of the actual methods, and
                                                                          -----> ^

+++++ third paragraph from bottom, first line : [after kwargs] of string should be of type String

In this snippet args is of type String, not an array of strings, and kwargs is also of string and
                                                                               -----> ^^

So kwargs is also of type String.

Yes, yes, and yes.