Skip to content

Commit 1ea8163

Browse files
authored
Fix FloatExt::lerp's documentation (#473)
1 parent 924e521 commit 1ea8163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/float.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/// A trait for extending [`prim@f32`] and [`prim@f64`] with extra methods.
22
pub trait FloatExt {
3-
/// Performs a linear interpolation between `self` and `rhs` based on the value `t`.
3+
/// Performs a linear interpolation between `self` and `rhs` based on the value `s`.
44
///
5-
/// When `t` is `0`, the result will be `self`. When `t` is `1`, the result
6-
/// will be `rhs`. When `t` is outside of the range `[0, 1]`, the result is linearly
5+
/// When `s` is `0`, the result will be `self`. When `s` is `1`, the result
6+
/// will be `rhs`. When `s` is outside of the range `[0, 1]`, the result is linearly
77
/// extrapolated.
88
#[must_use]
99
fn lerp(self, rhs: Self, s: Self) -> Self;

0 commit comments

Comments
 (0)