]> git.lizzy.rs Git - rust.git/commitdiff
add backticks
authorMaybe Waffle <waffle.lapkin@gmail.com>
Tue, 19 Jul 2022 16:28:53 +0000 (20:28 +0400)
committerMaybe Waffle <waffle.lapkin@gmail.com>
Sun, 24 Jul 2022 11:10:39 +0000 (15:10 +0400)
src/librustdoc/html/render/print_item.rs
src/test/rustdoc/must_implement_one_of.rs

index 82b06ae02bdcafdb07df4e68b7c30a8d9df428b3..c12b3ca6c600fa05bcb501274625ef37f52e29f3 100644 (file)
@@ -797,8 +797,8 @@ fn trait_item(w: &mut Buffer, cx: &mut Context<'_>, m: &clean::Item, t: &clean::
         if let Some(list) = must_implement_one_of_functions.as_deref() {
             write!(
                 w,
-                "<div class=\"stab must_implement\">At least one of {} methods is required.</div>",
-                list.iter().join("")
+                "<div class=\"stab must_implement\">At least one of `{}` methods is required.</div>",
+                list.iter().join("`, `")
             );
         }
 
index 9a89a5815b46176a2523dc2fdcc3e81c0ef80289..112c8b25e7e50f63af94b45a6359fe12d504c3d7 100644 (file)
@@ -3,7 +3,7 @@
 
 #[rustc_must_implement_one_of(a, b)]
 // @matches c/trait.Trait.html '//*[@class="stab must_implement"]' \
-//      'At least one of a, b methods is required.$'
+//      'At least one of `a`, `b` methods is required.$'
 pub trait Trait {
     fn a() {}
     fn b() {}