Skip to content

Commit 08ca76f

Browse files
committed
address feedback
Signed-off-by: Emmanuel Ugwu <emmanuelugwu121@gmail.com>
1 parent 89f546b commit 08ca76f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎library/core/src/attribute_docs.rs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,8 @@ mod ignore_attribute {}
607607
///
608608
/// ```rust
609609
/// // The lint group is fulfilled as the variables are unused.
610-
/// #![expect(unused)]
610+
/// #[expect(unused)]
611611
/// let x = 10;
612-
/// let y = 12;
613612
/// ```
614613
///
615614
/// For more information, see the Reference on [the `expect` attribute].
@@ -667,13 +666,13 @@ mod should_panic_attribute {}
667666
///
668667
/// Example:
669668
///
670-
/// ```rust,compile_fail
669+
/// ```rust,ignore
671670
/// mod foo; // By default `rustc` loads the source from `foo.rs`.
672671
/// ```
673672
///
674673
/// The `path` attribute overrides this behavior:
675674
///
676-
/// ```rust,compile_fail
675+
/// ```rust,ignore
677676
/// #[path = "bar.rs"]
678677
/// mod foo; // Now bar.rs is loaded as foo.
679678
/// ```

0 commit comments

Comments
 (0)