emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
20.61k stars 1.49k forks source link

doc(emath): Add `top_left` as an alias for `left_top`, etc. #4689

Closed zkldi closed 5 days ago

zkldi commented 6 days ago

What

Adds #[doc(alias = "top_left")] as an alias for left_top, and so on for right_top, right_bottom, left_bottom.

Why

Extremely minor doc-only change, but I keep going to type "top left" to look for the top left of a rectangle. I'm unsure whether this is just a british-english thing or an english-in-general thing, but top left corner is far more common than left top corner. These doc aliases don't conflict with anything, and mean that rust-analyzer will suggest the correct function when I search for the wrong thing.

This improves ergonomics and discoverability in my opinion, even if not by much.