Skip to content

Commit d566334

Browse files
committed
add backticks
1 parent 9b9693c commit d566334

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ fn item_trait(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &clean:
797797
if let Some(list) = must_implement_one_of_functions.as_deref() {
798798
write!(
799799
w,
800-
"<div class=\"stab must_implement\">At least one of {} methods is required.</div>",
801-
list.iter().join(", ")
800+
"<div class=\"stab must_implement\">At least one of `{}` methods is required.</div>",
801+
list.iter().join("`, `")
802802
);
803803
}
804804

src/test/rustdoc/must_implement_one_of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#[rustc_must_implement_one_of(a, b)]
55
// @matches c/trait.Trait.html '//*[@class="stab must_implement"]' \
6-
// 'At least one of a, b methods is required.$'
6+
// 'At least one of `a`, `b` methods is required.$'
77
pub trait Trait {
88
fn a() {}
99
fn b() {}

0 commit comments

Comments
 (0)