From 1f802a0be20cffc0cb130f84ea95528658af401b Mon Sep 17 00:00:00 2001 From: seancarroll Date: Fri, 1 Jan 2021 20:14:14 -0600 Subject: fix typo --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 691e0b0..769b26b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,7 +53,7 @@ pub enum AttributeText<'a> { /// /// Occurrences of backslashes (`\`) are escaped, and thus appear /// as backslashes in the rendered label. - QuottedStr(Cow<'a, str>), + QuotedStr(Cow<'a, str>), } impl<'a> AttributeText<'a> { @@ -70,7 +70,7 @@ impl<'a> AttributeText<'a> { } pub fn quoted>>(s: S) -> AttributeText<'a> { - QuottedStr(s.into()) + QuotedStr(s.into()) } fn escape_char(c: char, mut f: F) @@ -104,7 +104,7 @@ impl<'a> AttributeText<'a> { AttrStr(ref s) => format!("{}", s), EscStr(ref s) => format!("\"{}\"", AttributeText::escape_str(&s)), HtmlStr(ref s) => format!("<{}>", s), - QuottedStr(ref s) => format!("\"{}\"", s.escape_default()), + QuotedStr(ref s) => format!("\"{}\"", s.escape_default()), } } @@ -117,7 +117,7 @@ impl<'a> AttributeText<'a> { AttrStr(s) => s, EscStr(s) => s, HtmlStr(s) => s, - QuottedStr(s) => { + QuotedStr(s) => { if s.contains('\\') { (&*s).escape_default().to_string().into() } else { -- cgit v1.2.3