-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Enhanced RDoc for String#succ #3590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@jeremyevans, the penultimate collection of examples are not what I expected. Rollover seems not to pass through 255.chr as I'd expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think we should adjust the call-seq to not mention the alias, but it's up to you.
string.c
Outdated
* "ZZZ9999".succ #=> "AAAA0000" | ||
* "***".succ #=> "**+" | ||
* string.succ -> new_str | ||
* string.next -> new_str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should leave next
off the call-seq, and only mention it near the end as an alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremyevans, the penultimate collection of examples are not what I expected. Rollover seems not to pass through 255.chr as I'd expected. So the text needs to change. I'll draft something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I like the replaced examples.
* Enhanced RDoc for String#succ
No description provided.