Documentation correction

B

Brian Schroeder

Hello Everybody,

I just mentioned an error in the documentation as extracted by ri. So my
question is, where is the correct place to make corrections. Is it
possible to do so. Does there exist a collaborative documentation
approach? (I think someone mentioned it some time before).

I'll post the error also here, even though I'm shure it is not the right
place for it. But I'm lazy ;).


bschroed@black:~/uni/onlinealgo $ ri Enumerable.min
--------------------------------------------------------- Enumerable#min
....
a = %w(albatross dog horse)
a.min #=> "albatross"
a.max {|a,b| a.length <=> b.length } #=> "dog"

The last line should either be a.min ..., or the result should be albatross.

A note on the existence of max would also be nice.

Greetings,

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top