Revert example change from PR 116392

This commit is contained in:
David Tolnay 2024-01-20 18:39:48 -08:00
parent fc75a4e146
commit f52b88e91f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 4 deletions

View File

@ -166,10 +166,7 @@ impl<T: 'static> fmt::Debug for LocalKey<T> {
/// ```
/// use std::cell::Cell;
/// thread_local! {
/// pub static FOO: Cell<u32> = const {
/// let value = 1;
/// Cell::new(value)
/// };
/// pub static FOO: Cell<u32> = const { Cell::new(1) };
/// }
///
/// assert_eq!(FOO.get(), 1);