Skip to content

Commit 91c22d1

Browse files
committed
fix doctest
1 parent 5d77f9b commit 91c22d1

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
@@ -716,7 +716,8 @@ declare_lint! {
716716
///
717717
/// ### Example
718718
///
719-
/// ``` fn func() {
719+
/// ``` rust
720+
/// fn func() {
720721
/// const CAP: usize = std::u32::MAX as usize;
721722
/// let mut x: [u8; CAP>>1] = [0; CAP>>1];
722723
/// x[2] = 123;

0 commit comments

Comments
 (0)