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

[Docs] Remove outdated example from Numeric documentation #1850

Closed
wants to merge 1 commit into from

Conversation

nomadium
Copy link

Hi,

While working on implementing some features in JRuby, I just noticed Numeric class documentation [1] has an outdated example. It warns users that Integers can't be duplicated and that is not true since Ruby 2.4. Since 2.5, Numeric instances can be cloned and duplicated as well [2].

Thanks for your feedback.

  1. https://ruby-doc.org/core-2.5.0/Numeric.html
  2. 31ef312

Copy link

@paddor paddor left a comment

Choose a reason for hiding this comment

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

Two lines above the doc says that “Ruby prevents instantiation and duplication.” Maybe you wanna change that too?

Since 2.5, Numeric instances can be cloned and duplicated.
@nomadium nomadium force-pushed the update-numeric-documentation branch from 8551efd to 7bf4c51 Compare March 27, 2018 18:52
@nomadium
Copy link
Author

@paddor Thanks for the observation. I updated the change accordingly.

@matzbot matzbot closed this in 23228b6 Apr 7, 2018
@nomadium nomadium deleted the update-numeric-documentation branch June 3, 2018 19:24
matzbot pushed a commit that referenced this pull request Jul 30, 2018
	Remove outdated example from Numeric documentation

	Since 2.5, Numeric instances can be cloned and duplicated.

	[Fix GH-1850]

	From: Miguel Landaeta <miguel@miguel.cc>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@64127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matzbot pushed a commit that referenced this pull request Aug 18, 2018
	Remove outdated example from Numeric documentation

	Since 2.5, Numeric instances can be cloned and duplicated.

	[Fix GH-1850]

	From: Miguel Landaeta <miguel@miguel.cc>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64435 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
2 participants