diff options
author | seancarroll <seanc28@gmail.com> | 2021-01-01 20:14:14 -0600 |
---|---|---|
committer | seancarroll <seanc28@gmail.com> | 2021-01-01 20:14:14 -0600 |
commit | 1f802a0be20cffc0cb130f84ea95528658af401b (patch) | |
tree | bf1c44d1170965546e7af83775338550a0bf5493 | |
parent | 5d14480f5b20a6d0cf21f2430a138e26f152d265 (diff) | |
download | dotavious-1f802a0be20cffc0cb130f84ea95528658af401b.zip |
fix typo
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: Into<Cow<'a, str>>>(s: S) -> AttributeText<'a> { - QuottedStr(s.into()) + QuotedStr(s.into()) } fn escape_char<F>(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 { |