From 2c26dd547323d39efb7aa6bf9fdf081b8953c223 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Wed, 29 May 2024 13:36:47 -0400 Subject: Fix UB with UnsafeCell --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 643c3e7..8576975 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,7 +99,7 @@ //! use std::thread; //! use happylock::{LockCollection, Mutex, ThreadKey}; //! -//! const N: usize = 100; +//! const N: usize = 32; //! //! static DATA: [Mutex; 2] = [Mutex::new(0), Mutex::new(1)]; //! -- cgit v1.2.3