Files
rust/library/core
Jonathan Brouwer e8d2321b41 Rollup merge of #156830 - okaneco:phi_doc_alias, r=SimonSapin
Add `#[doc(alias = "phi")]` for float `GOLDEN_RATIO` constants

- 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
2026-05-24 08:27:21 +02:00
..
2025-11-16 23:35:37 -05:00