Skip to content

Commit 133a942

Browse files
committed
fix doctest
1 parent de9e78f commit 133a942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ declare_lint! {
718718
///
719719
/// ### Example
720720
///
721-
/// ``` fn func() {
721+
/// ``` rust
722+
/// fn func() {
722723
/// const CAP: usize = std::u32::MAX as usize;
723724
/// let mut x: [u8; CAP>>1] = [0; CAP>>1];
724725
/// x[2] = 123;

0 commit comments

Comments
 (0)