From b00cac307adc901adfc69e985227342f13575e7f Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:39:44 +0000 Subject: [PATCH] docs: use `unwrap` in example to extract from Option --- helix-view/src/graphics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);