Skip to content

Commit

Permalink
remove unnecessary to_string in docs (emilk#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Titaniumtown authored Mar 10, 2022
1 parent cd555e0 commit c19a7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egui/src/widgets/plot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
/// }
Expand Down

0 comments on commit c19a7ff

Please sign in to comment.