mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 02:53:43 +00:00
rustdoc: Add an example for round that is different from truncate The current examples for [round](https://github.com/rust-lang/rust/blob/master/library/std/src/f64.rs#L75) would have the same results as the example for [truncate](https://github.com/rust-lang/rust/blob/master/library/std/src/f64.rs#L95). This PR adds one more example to `round` that will have a different result from `truncate`.