From 217291afa4e4da84c68629311adc3b8c6175493d Mon Sep 17 00:00:00 2001 From: Jedsek Date: Tue, 16 Aug 2022 10:44:22 +0800 Subject: [PATCH] Fix the wrong link about `template` --- src/style.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/style.rs b/src/style.rs index 80d433b5..05f56c43 100644 --- a/src/style.rs +++ b/src/style.rs @@ -72,6 +72,9 @@ impl ProgressStyle { Self::new(Template::from_str("{spinner} {msg}").unwrap()) } + /// Sets the template string for the progress bar + /// + /// Review the [list of template keys](../index.html#templates) for more information. pub fn with_template(template: &str) -> Result { Ok(Self::new(Template::from_str(template)?)) } @@ -149,7 +152,7 @@ impl ProgressStyle { /// Sets the template string for the progress bar /// - /// Review the [list of template keys](./index.html#templates) for more information. + /// Review the [list of template keys](../index.html#templates) for more information. pub fn template(mut self, s: &str) -> Result { self.template = Template::from_str(s)?; Ok(self)