mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
remove unnecessary to_string in docs (#1345)
This commit is contained in:
@@ -328,7 +328,7 @@ impl Plot {
|
|||||||
/// Plot::new("my_plot").view_aspect(2.0)
|
/// Plot::new("my_plot").view_aspect(2.0)
|
||||||
/// .label_formatter(|name, value| {
|
/// .label_formatter(|name, value| {
|
||||||
/// if !name.is_empty() {
|
/// if !name.is_empty() {
|
||||||
/// format!("{}: {:.*}%", name, 1, value.y).to_string()
|
/// format!("{}: {:.*}%", name, 1, value.y)
|
||||||
/// } else {
|
/// } else {
|
||||||
/// "".to_string()
|
/// "".to_string()
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
Reference in New Issue
Block a user