remove unnecessary to_string in docs (#1345)
This commit is contained in:
parent
cd555e07b8
commit
c19a7ff34f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
/// }
|
||||
|
|
Loading…
Reference in a new issue