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

View File

@ -166,10 +166,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
/// ```
/// 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);