diff --git a/helix-view/src/graphics.rs b/helix-view/src/graphics.rs index fa0e078c..67160aed 100644 --- a/helix-view/src/graphics.rs +++ b/helix-view/src/graphics.rs @@ -268,7 +268,7 @@ pub enum Color { /// # Examples /// /// ```rust -/// let color1 = Color::from_hex("#c0ffee"); +/// let color1 = Color::from_hex("#c0ffee").unwrap(); /// let color2 = Color::Rgb(192, 255, 238); /// /// assert_eq!(color1, color2);