diff --git a/src/libstd/sys/unix/mutex.rs b/src/libstd/sys/unix/mutex.rs index f0711b60320..efa6e8ec036 100644 --- a/src/libstd/sys/unix/mutex.rs +++ b/src/libstd/sys/unix/mutex.rs @@ -27,8 +27,8 @@ impl Mutex { pub const fn new() -> Mutex { // Might be moved to a different address, so it is better to avoid // initialization of potentially opaque OS data before it landed. - // Be very careful using this newly constructed `Mutex`, it should - // be initialized by calling `init()` first! + // Be very careful using this newly constructed `Mutex`, reentrant + // locking is undefined behavior until `init` is called! Mutex { inner: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER) } } #[inline]