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

[DOC] Small tweaks #89

Merged
merged 4 commits into from
Jun 16, 2022
Merged

[DOC] Small tweaks #89

merged 4 commits into from
Jun 16, 2022

Conversation

BurdetteLamar
Copy link
Member

@BurdetteLamar BurdetteLamar commented Jun 15, 2022

Small tweaks:

  • Adds return values.
  • Adds aliases.

Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

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

I don't think we should specify the return value for methods where the return value is insignificant (especially when the return value is nil or 0). These values come from the side-effect that Ruby returns the last value of the method and should be allowed to change freely in the future, so no users should depend on it.

lib/fileutils.rb Outdated Show resolved Hide resolved
lib/fileutils.rb Outdated Show resolved Hide resolved
lib/fileutils.rb Outdated Show resolved Hide resolved
lib/fileutils.rb Outdated Show resolved Hide resolved
lib/fileutils.rb Outdated Show resolved Hide resolved
lib/fileutils.rb Outdated Show resolved Hide resolved
Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

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

Looks good!

@BurdetteLamar BurdetteLamar merged commit 13ab964 into ruby:master Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants