mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
add backticks
This commit is contained in:
parent
9b9693c11b
commit
d566334a94
@ -797,8 +797,8 @@ fn item_trait(w: &mut Buffer, cx: &mut Context<'_>, it: &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("`, `")
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user