Skip to content

Commit 92215de

Browse files
bors[bot]okaneco
andauthored
Merge #195
195: Fix typos in some doc comments r=Ogeon a=okaneco Co-authored-by: okaneco <47607823+okaneco@users.noreply.github.com>
2 parents 91ff1d4 + 836f67d commit 92215de

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

palette/src/chromatic_adaptation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ pub enum Method {
4040
XyzScaling,
4141
}
4242

43-
/// Holds the matrix coeffecients for the chromatic adaptation methods
43+
/// Holds the matrix coefficients for the chromatic adaptation methods
4444
pub struct ConeResponseMatrices<T: Float> {
4545
///3x3 matrix for the cone response domains
4646
pub ma: Mat3<T>,
4747
///3x3 matrix for the inverse of the cone response domains
4848
pub inv_ma: Mat3<T>,
4949
}
5050

51-
/// Generates a conversion matrix to convert the Xyz trisitmilus values from
51+
/// Generates a conversion matrix to convert the Xyz tristimulus values from
5252
/// one illuminant to another (Swp -> Dwp)
5353
pub trait TransformMatrix<Swp, Dwp, T>
5454
where

palette/src/white_point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::{from_f64, FloatComponent, Xyz};
1919
/// tristimulus values and can be used in place of the ones defined in this
2020
/// library.
2121
pub trait WhitePoint: 'static {
22-
/// Get the Xyz chromacity co-ordinates for the white point.
22+
/// Get the Xyz chromaticity co-ordinates for the white point.
2323
fn get_xyz<Wp: WhitePoint, T: FloatComponent>() -> Xyz<Wp, T>;
2424
}
2525

palette/src/xyz.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ where
5656

5757
/// Z is the scale of what can be seen as the blue stimulation. Its range
5858
/// depends on the white point and goes from 0.0 to 1.08883 for the
59-
/// defautl D65.
59+
/// default D65.
6060
pub z: T,
6161

6262
/// The white point associated with the color's illuminant and observer.
@@ -87,7 +87,7 @@ impl<T> Xyz<D65, T>
8787
where
8888
T: FloatComponent,
8989
{
90-
/// CIE XYZ with whtie point D65.
90+
/// CIE XYZ with white point D65.
9191
pub fn new(x: T, y: T, z: T) -> Xyz<D65, T> {
9292
Xyz {
9393
x,

palette/src/yxy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pub type Yxya<Wp = D65, T = f32> = Alpha<Yxy<Wp, T>, T>;
2424
/// The CIE 1931 Yxy (xyY) color space.
2525
///
2626
/// Yxy is a luminance-chromaticity color space derived from the CIE XYZ
27-
/// color space. It is widely used to define colors. The chromacity diagrams
28-
/// for the color spaces are a plot of this color space's x and y coordiantes.
27+
/// color space. It is widely used to define colors. The chromaticity diagrams
28+
/// for the color spaces are a plot of this color space's x and y coordinates.
2929
///
3030
/// Conversions and operations on this color space depend on the white point.
3131
#[derive(Debug, PartialEq, Pixel, FromColorUnclamped, WithAlpha)]
@@ -42,11 +42,11 @@ where
4242
T: FloatComponent,
4343
Wp: WhitePoint,
4444
{
45-
/// x chromacity co-ordinate derived from XYZ color space as X/(X+Y+Z).
45+
/// x chromaticity co-ordinate derived from XYZ color space as X/(X+Y+Z).
4646
/// Typical range is between 0 and 1
4747
pub x: T,
4848

49-
/// y chromacity co-ordinate derived from XYZ color space as Y/(X+Y+Z).
49+
/// y chromaticity co-ordinate derived from XYZ color space as Y/(X+Y+Z).
5050
/// Typical range is between 0 and 1
5151
pub y: T,
5252

0 commit comments

Comments
 (0)