about summary refs log tree commit diff
path: root/compiler/rustc_graphviz/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2022-11-07 09:46:29 +0900
committerGitHub <noreply@github.com>2022-11-07 09:46:29 +0900
commit7ca833efe07a918f3ba89630da312d3fd6a85e01 (patch)
treea551182bfce55b37e2ba49f98be4796bf1e94093 /compiler/rustc_graphviz/src
parent02a0bdee0da2b1462463468909a656d10c412e30 (diff)
parenta398e09e42b9b3263dd20d45b1c6f1fd4fe8ce3b (diff)
downloadrust-7ca833efe07a918f3ba89630da312d3fd6a85e01.tar.gz
rust-7ca833efe07a918f3ba89630da312d3fd6a85e01.zip
Rollup merge of #104074 - yancyribbens:add-example-to-round, r=Mark-Simulacrum
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`.
Diffstat (limited to 'compiler/rustc_graphviz/src')
0 files changed, 0 insertions, 0 deletions