]> git.lizzy.rs Git - rust.git/commitdiff
apply review suggestions
authorMaybe Waffle <waffle.lapkin@gmail.com>
Mon, 25 Jul 2022 17:12:56 +0000 (21:12 +0400)
committerMaybe Waffle <waffle.lapkin@gmail.com>
Mon, 25 Jul 2022 17:12:56 +0000 (21:12 +0400)
src/librustdoc/html/render/print_item.rs
src/test/rustdoc/must_implement_one_of.rs

index c12b3ca6c600fa05bcb501274625ef37f52e29f3..dcd2eaac7ea60e346071aa940e860d6e8200839d 100644 (file)
@@ -797,7 +797,7 @@ 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>",
+                "<div class=\"stab must_implement\">At least one of the `{}` methods is required.</div>",
                 list.iter().join("`, `")
             );
         }
index 112c8b25e7e50f63af94b45a6359fe12d504c3d7..1f1dd5d5796ee9ca015a899b01229bc21e6f9775 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 the `a`, `b` methods is required.$'
 pub trait Trait {
     fn a() {}
     fn b() {}