Revert example change from PR 116392
This commit is contained in:
@@ -166,10 +166,7 @@ impl<T: 'static> fmt::Debug for LocalKey<T> {
|
|||||||
/// ```
|
/// ```
|
||||||
/// 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user