Skip to content

Commit

Permalink
Fix the wrong link about template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedsek authored and djc committed Aug 16, 2022
1 parent b315c84 commit 217291a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/style.rs
Expand Up @@ -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<Self, TemplateError> {
Ok(Self::new(Template::from_str(template)?))
}
Expand Down Expand Up @@ -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<ProgressStyle, TemplateError> {
self.template = Template::from_str(s)?;
Ok(self)
Expand Down

0 comments on commit 217291a

Please sign in to comment.