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
+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()
/// }