1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix typos

This commit is contained in:
Emil Ernerfeldt
2023-08-14 14:11:19 +02:00
parent c81cfeb24d
commit 48340a3aff
2 changed files with 6 additions and 6 deletions

View File

@@ -78,8 +78,8 @@ impl<const AXIS: usize> AxisHints<AXIS> {
/// 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<f64>) -> String) -> Self {
self.formatter = fmt;
self

View File

@@ -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<f64>) -> 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<f64>) -> String) -> Self {
if !self.y_axes.is_empty() {
self.y_axes[0].formatter = fmt;