Skip to content
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

Fix string/socket documentation #292

Closed
wants to merge 1 commit into from
Closed

Conversation

vipulnsward
Copy link

Fix typos, and string#include? example

@@ -4345,7 +4345,7 @@ enum neighbor_char {
*
* "hello".include? "lo" #=> true
* "hello".include? "ol" #=> false
* "hello".include? ?h #=> true
* "hello".include? "h" #=> true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?h == "h", so this is not a fix...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcandre According to http://ruby-doc.org/core-2.0/String.html#method-i-include-3F
the ? gets stripped.

How should the ? be retained?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should. Looks like a bug of rdoc?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. @drbrain thoughts?

@zzak
Copy link
Member

zzak commented Apr 24, 2013

@vipulnsward Please file a bug on rdoc issues tracker

@zzak zzak closed this in 360843e Apr 24, 2013
@vipulnsward vipulnsward deleted the fix_doc branch April 24, 2013 04:45
evanphx pushed a commit that referenced this pull request Apr 24, 2013
	* ext/socket/lib/socket.rb: Doc typos by @vipulnsward [Fixes GH-292]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlove pushed a commit to tenderlove/ruby that referenced this pull request Jan 24, 2014
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants