From efc6d4fcc969b10ce40ff9a691a97482c1fc61fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Audiger?= Date: Wed, 22 Mar 2023 18:27:01 +0100 Subject: [PATCH] Quick fix around doc tests regarding Color::prefix(). --- src/ansi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansi.rs b/src/ansi.rs index 0249da0..c9ad7e4 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -259,8 +259,8 @@ impl Color { /// ``` /// use nu_ansi_term::Color::Green; /// - /// assert_eq!("\x1b[0m", - /// Green.suffix().to_string()); + /// assert_eq!("\x1b[32m", + /// Green.prefix().to_string()); /// ``` pub fn prefix(self) -> Prefix { Prefix(self.normal())