remove unnecessary to_string in docs (#1345)

This commit is contained in:
Simon Gardling authored and GitHub committed 2022-03-10 08:23:00 +01:00
1 parent cd555e07b8
commit c19a7ff34f
1 file changed
+1 -1
+1 -1
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()
/// }