Skip to content

Add #[doc(alias = "phi")] for float GOLDEN_RATIO constants#156830

Open
okaneco wants to merge 1 commit into
rust-lang:mainfrom
okaneco:phi_doc_alias
Open

Add #[doc(alias = "phi")] for float GOLDEN_RATIO constants#156830
okaneco wants to merge 1 commit into
rust-lang:mainfrom
okaneco:phi_doc_alias

Conversation

@okaneco
Copy link
Copy Markdown
Contributor

@okaneco okaneco commented May 22, 2026

  • Adds "phi" doc alias for f16, f32, f64, and f128

I knew this constant was stabilized but I couldn't remember what it was called.
Searching "phi" in the docs only surfaces the π constant, is_ascii_graphic, and spin_loop_hint methods. This alias would make it much easier to find.
https://doc.rust-lang.org/nightly/std/?search=phi

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 22, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 22, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 7 candidates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants