From 78d59544199b8401cf8c115966771338e6c695f2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 29 Mar 2020 19:21:35 +0200 Subject: [PATCH] library: core: color: fix from_slice's doc-test --- pathtracer/src/core/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {