diff --git a/.vscode/settings.json b/.vscode/settings.json index a3fc0b2f..7720ac62 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,6 +30,7 @@ "EEPROM", "ewram", "fixnum", + "fixnums", "fontdue", "fract", "FRAM", @@ -54,6 +55,7 @@ "mgba", "normalise", "normalised", + "Normalises", "nostack", "Optimisation", "optimise", diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index 2accff36..85745b61 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -424,7 +424,7 @@ impl Num { impl Num { #[must_use] - /// Returns the square root of a number, it is calcuated a digit at a time. + /// Returns the square root of a number, it is calculated a digit at a time. /// ``` /// # use agb_fixnum::*; /// let n: Num = num!(16.); @@ -530,7 +530,7 @@ impl Display for Num { let mut fractional = self.0 & mask; - // Negative fix nums are awkward to print if they have non zero fractional part. + // Negative fixnums are awkward to print if they have non zero fractional part. // This is because you can think of them as `number + non negative fraction`. // // But if you think of a negative number, you'd like it to be `negative number - non negative fraction` @@ -569,7 +569,7 @@ impl Debug for Num { } } -/// A vector of two points: (x, y) represened by integers or fixed point numbers +/// A vector of two points: (x, y) represented by integers or fixed point numbers #[derive(Clone, Copy, PartialEq, Eq, Debug, Default)] pub struct Vector2D { /// The x coordinate @@ -675,7 +675,7 @@ impl Vector2D> { } #[must_use] - /// Floors the x and y coordnate, see [Num::floor] + /// Floors the x and y coordinate, see [Num::floor] /// ``` /// # use agb_fixnum::*; /// let v1: Vector2D> = Vector2D::new(num!(1.56), num!(-2.2)); @@ -984,7 +984,7 @@ impl Vector2D { Vector2D { x, y } } - /// Returns the tuple of the coorinates + /// Returns the tuple of the coordinates /// ``` /// # use agb_fixnum::*; /// let v = Vector2D::new(1, 2);