Revert example change from PR 116392
This commit is contained in:
parent
fc75a4e146
commit
f52b88e91f
@ -166,10 +166,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|||||||
/// ```
|
/// ```
|
||||||
/// use std::cell::Cell;
|
/// use std::cell::Cell;
|
||||||
/// thread_local! {
|
/// thread_local! {
|
||||||
/// pub static FOO: Cell<u32> = const {
|
/// pub static FOO: Cell<u32> = const { Cell::new(1) };
|
||||||
/// let value = 1;
|
|
||||||
/// Cell::new(value)
|
|
||||||
/// };
|
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// assert_eq!(FOO.get(), 1);
|
/// assert_eq!(FOO.get(), 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user