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] Complex doc #9185

Merged
merged 4 commits into from Dec 11, 2023
Merged

[DOC] Complex doc #9185

merged 4 commits into from Dec 11, 2023

Conversation

BurdetteLamar
Copy link
Member

Revises:

  • #real.
  • #imag.

Also fixes errors pointed out by @nobu in #9181.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Dec 10, 2023
complex.c Outdated Show resolved Hide resolved
complex.c Outdated
* Complex(9, -4).real #=> 9
*
* If +self+ was created with
* {polar coordinated}[rdoc-ref:Complex@Polar+Coordinates], the returned value
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to have been meant to be {polar coordinates} instead, same below.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is correct as it stands? If created with rectangular coordinates, real value exact; if created with polar coordinates, real value is computed.

Copy link
Contributor

Choose a reason for hiding this comment

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

The meaning seems fine, you just got a typo there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed (I think).

@peterzhu2118 peterzhu2118 merged commit e1d995a into ruby:master Dec 11, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
4 participants