library: core: color: fix from_slice's doc-test

This commit is contained in:
Bruno BELANYI 2020-03-29 19:21:35 +02:00
parent b79c94aad9
commit 78d5954419

View file

@ -79,7 +79,7 @@ impl LinearColor {
/// ``` /// ```
/// # use pathtracer::core::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 { pub fn from_slice(s: &[f32]) -> Self {
LinearColor { LinearColor {