瀏覽代碼

Fix trailing comma in head doctest

Evan Almloff 11 月之前
父節點
當前提交
9fb92f30a6
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      packages/core-macro/tests/rsx/trailing-comma-0.stderr
  2. 1 1
      packages/html/src/document/head.rs

+ 2 - 1
packages/core-macro/tests/rsx/trailing-comma-0.stderr

@@ -1,6 +1,7 @@
 error: Attributes must be separated by commas
-       = help: Did you forget a comma?
  --> tests/rsx/trailing-comma-0.rs:9:13
   |
 9 |             class: "foo bar"
   |             ^^^^^
+  |
+  = help: Did you forget a comma?

+ 1 - 1
packages/html/src/document/head.rs

@@ -324,7 +324,7 @@ impl StyleProps {
 ///                 body {{
 ///                     background-color: red;
 ///                 }}
-///             "#,
+///             "#
 ///         }
 ///     }
 /// }