From ed8c2c28f0f0072dbb0ceae36b278d681d997fad Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 25 Jul 2022 21:12:56 +0400 Subject: [PATCH] apply review suggestions --- src/librustdoc/html/render/print_item.rs | 2 +- src/test/rustdoc/must_implement_one_of.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index c12b3ca6c600f..dcd2eaac7ea60 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -797,7 +797,7 @@ 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, - "
At least one of `{}` methods is required.
", + "
At least one of the `{}` methods is required.
", list.iter().join("`, `") ); } diff --git a/src/test/rustdoc/must_implement_one_of.rs b/src/test/rustdoc/must_implement_one_of.rs index 112c8b25e7e50..1f1dd5d5796ee 100644 --- a/src/test/rustdoc/must_implement_one_of.rs +++ b/src/test/rustdoc/must_implement_one_of.rs @@ -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 the `a`, `b` methods is required.$' pub trait Trait { fn a() {} fn b() {}