summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseancarroll <seanc28@gmail.com>2021-01-01 20:14:14 -0600
committerseancarroll <seanc28@gmail.com>2021-01-01 20:14:14 -0600
commit1f802a0be20cffc0cb130f84ea95528658af401b (patch)
treebf1c44d1170965546e7af83775338550a0bf5493
parent5d14480f5b20a6d0cf21f2430a138e26f152d265 (diff)
downloaddotavious-1f802a0be20cffc0cb130f84ea95528658af401b.zip
fix typo
-rw-r--r--src/lib.rs8
1 files 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: 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 {