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

adding description of return value [ci skip] #21480

Merged
merged 1 commit into from
Sep 7, 2015

Conversation

amitsuroliya
Copy link
Contributor

No description provided.

@rails-bot
Copy link

r? @pixeltrix

(@rails-bot has picked a reviewer for you, use r? to override)

@claudiob
Copy link
Member

claudiob commented Sep 3, 2015

Hello @amitsuroliya!

You are right that the sentence doesn't read well, but stating that the method returns true or false might be misinterpreted as the actual values true and false.

Maybe @fxn can chime in here. We could also just say

Returns whether the underlying handler supports streaming.

@matthewd
Copy link
Member

matthewd commented Sep 3, 2015

"true" and "false" have a well-defined meaning in our documentation.. but I agree the "whether" version reads better.

@amitsuroliya
Copy link
Contributor Author

Thanks @claudiob and @matthewd for suggestions. I updated PR. Please review.

@@ -141,7 +141,7 @@ def initialize(source, identifier, handler, details)
@compile_mutex = Mutex.new
end

# Returns if the underlying handler supports streaming. If so,
# Returns whether the underlying handler supports streaming. If so,
# a streaming buffer *may* be passed when it start rendering.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're touching this anyway it would be great to expand the *may*. I don't understand what that means.

@fxn
Copy link
Member

fxn commented Sep 6, 2015

👍 to "whether".

kaspth added a commit that referenced this pull request Sep 7, 2015
adding description of return value [ci skip]
@kaspth kaspth merged commit b5a489f into rails:master Sep 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants