1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

remove unnecessary to_string in docs (#1345)

This commit is contained in:
Simon Gardling
2022-03-10 02:23:00 -05:00
committed by GitHub
parent cd555e07b8
commit c19a7ff34f

View File

@@ -328,7 +328,7 @@ impl Plot {
/// Plot::new("my_plot").view_aspect(2.0)
/// .label_formatter(|name, value| {
/// if !name.is_empty() {
/// format!("{}: {:.*}%", name, 1, value.y).to_string()
/// format!("{}: {:.*}%", name, 1, value.y)
/// } else {
/// "".to_string()
/// }