diff --git a/pathtracer/src/core/color.rs b/pathtracer/src/core/color.rs index b2406ae..e6d83c3 100644 --- a/pathtracer/src/core/color.rs +++ b/pathtracer/src/core/color.rs @@ -79,7 +79,7 @@ impl LinearColor { /// ``` /// # use pathtracer::core::LinearColor; /// # - /// let color = LinearColor::new(&[1.0, 0.0, 0.0]); // bright red! + /// let color = LinearColor::from_slice(&[1.0, 0.0, 0.0]); // bright red! /// ``` pub fn from_slice(s: &[f32]) -> Self { LinearColor {