diff --git a/crates/egui/src/widgets/plot/axis.rs b/crates/egui/src/widgets/plot/axis.rs index 54f93b31c..1331c0a3c 100644 --- a/crates/egui/src/widgets/plot/axis.rs +++ b/crates/egui/src/widgets/plot/axis.rs @@ -78,8 +78,8 @@ impl AxisHints { /// Specify custom formatter for ticks. /// /// The first parameter of `formatter` is the raw tick value as `f64`. - /// The second paramter is the maximum number of characters that fit into y-labels. - /// The second paramter of `formatter` is the currently shown range on this axis. + /// The second parameter is the maximum number of characters that fit into y-labels. + /// The second parameter of `formatter` is the currently shown range on this axis. pub fn formatter(mut self, fmt: fn(f64, usize, &RangeInclusive) -> String) -> Self { self.formatter = fmt; self diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index 382b3ee6d..e01c2fb7a 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -617,8 +617,8 @@ impl Plot { /// > Note: This requires an x-axis to exist, either by [`Self::custom_x_axes`] or [`Self::x_axis_label`] /// /// The first parameter of `fmt` is the raw tick value as `f64`. - /// The second paramter is the maximum requested number of characters per tick label. - /// The second paramter of `fmt` is the currently shown range on this axis. + /// The second parameter is the maximum requested number of characters per tick label. + /// The second parameter of `fmt` is the currently shown range on this axis. pub fn x_axis_formatter(mut self, fmt: fn(f64, usize, &RangeInclusive) -> String) -> Self { if !self.x_axes.is_empty() { self.x_axes[0].formatter = fmt; @@ -631,8 +631,8 @@ impl Plot { /// > Note: This requires a y-axis to exist, either by [`Self::custom_y_axes`] or [`Self::y_axis_label`] /// /// The first parameter of `formatter` is the raw tick value as `f64`. - /// The second paramter is the maximum requested number of characters per tick label. - /// The second paramter of `formatter` is the currently shown range on this axis. + /// The second parameter is the maximum requested number of characters per tick label. + /// The second parameter of `formatter` is the currently shown range on this axis. pub fn y_axis_formatter(mut self, fmt: fn(f64, usize, &RangeInclusive) -> String) -> Self { if !self.y_axes.is_empty() { self.y_axes[0].formatter = fmt;