Skip to content

Commit 53049f7

Browse files
committed
Fixed Doc-Tests
1 parent 8e0ea60 commit 53049f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/core/src/const_closure.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use crate::marker::Destruct;
33
/// Struct representing a closure with owned data.
44
///
55
/// Example:
6-
/// ```rust
7-
/// use const_closure::ConstFnOnceClosure;
6+
/// ```no_build
7+
/// use crate::const_closure::ConstFnOnceClosure;
88
/// const fn imp(state: i32, (arg,): (i32,)) -> i32 {
99
/// state + arg
1010
/// }
@@ -51,9 +51,9 @@ where
5151
/// Struct representing a closure with mutably borrowed data.
5252
///
5353
/// Example:
54-
/// ```rust
54+
/// ```no_build
5555
/// #![feature(const_mut_refs)]
56-
/// use const_closure::ConstFnMutClosure;
56+
/// use crate::const_closure::ConstFnMutClosure;
5757
/// const fn imp(state: &mut i32, (arg,): (i32,)) -> i32 {
5858
/// *state += arg;
5959
/// *state
@@ -110,8 +110,8 @@ where
110110
/// Struct representing a closure with borrowed data.
111111
///
112112
/// Example:
113-
/// ```rust
114-
/// use const_closure::ConstFnClosure;
113+
/// ```no_build
114+
/// use crate::const_closure::ConstFnClosure;
115115
///
116116
/// const fn imp(state: &i32, (arg,): (i32,)) -> i32 {
117117
/// *state + arg

0 commit comments

Comments
 (0)