]> git.lizzy.rs Git - rust.git/commitdiff
fix spurious </span> appearing before the opening tag
authorQuietMisdreavus <bryan@icesoldier.me>
Thu, 13 Oct 2016 18:58:04 +0000 (13:58 -0500)
committerQuietMisdreavus <bryan@icesoldier.me>
Thu, 13 Oct 2016 18:58:04 +0000 (13:58 -0500)
src/librustdoc/html/format.rs

index 092e1548446e384e3c732b5c44b2fb2b469723d8..6d96b172a2e61f5907fa080e7fe53b28d322f495 100644 (file)
@@ -205,7 +205,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
             }
         }
         if !f.alternate() {
-            f.write_str("</span>")?;
+            clause.push_str("</span>");
             let plain = format!("{:#}", self);
             if plain.len() > 80 {
                 let padding = repeat("&nbsp;").take(8).collect::<String>();