Skip to content

Commit

Permalink
Fixed Doc-Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
onestacked committed Sep 23, 2022
1 parent 8e0ea60 commit 53049f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions library/core/src/const_closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::marker::Destruct;
/// Struct representing a closure with owned data.
///
/// Example:
/// ```rust
/// use const_closure::ConstFnOnceClosure;
/// ```no_build
/// use crate::const_closure::ConstFnOnceClosure;
/// const fn imp(state: i32, (arg,): (i32,)) -> i32 {
/// state + arg
/// }
Expand Down Expand Up @@ -51,9 +51,9 @@ where
/// Struct representing a closure with mutably borrowed data.
///
/// Example:
/// ```rust
/// ```no_build
/// #![feature(const_mut_refs)]
/// use const_closure::ConstFnMutClosure;
/// use crate::const_closure::ConstFnMutClosure;
/// const fn imp(state: &mut i32, (arg,): (i32,)) -> i32 {
/// *state += arg;
/// *state
Expand Down Expand Up @@ -110,8 +110,8 @@ where
/// Struct representing a closure with borrowed data.
///
/// Example:
/// ```rust
/// use const_closure::ConstFnClosure;
/// ```no_build
/// use crate::const_closure::ConstFnClosure;
///
/// const fn imp(state: &i32, (arg,): (i32,)) -> i32 {
/// *state + arg
Expand Down

0 comments on commit 53049f7

Please sign in to comment.