about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-07-25 21:12:56 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-07-25 21:12:56 +0400
commited8c2c28f0f0072dbb0ceae36b278d681d997fad (patch)
treea264e6927a6278c5262bc984b72eb27b742eb133
parent1c4c39885b95e61256599c423114758f29cf3c32 (diff)
downloadrust-ed8c2c28f0f0072dbb0ceae36b278d681d997fad.tar.gz
rust-ed8c2c28f0f0072dbb0ceae36b278d681d997fad.zip
apply review suggestions
-rw-r--r--src/librustdoc/html/render/print_item.rs2
-rw-r--r--src/test/rustdoc/must_implement_one_of.rs2
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 c12b3ca6c60..dcd2eaac7ea 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,
-                "<div class=\"stab must_implement\">At least one of `{}` methods is required.</div>",
+                "<div class=\"stab must_implement\">At least one of the `{}` methods is required.</div>",
                 list.iter().join("`, `")
             );
         }
diff --git a/src/test/rustdoc/must_implement_one_of.rs b/src/test/rustdoc/must_implement_one_of.rs
index 112c8b25e7e..1f1dd5d5796 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() {}