Преглед на файлове

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;
 ///                 }}
-///             "#,
+///             "#
 ///         }
 ///     }
 /// }