rust/library/std/src/sync
Andrew Lilley Brinker 23e4e98d2c fix: Remove duplicate LazyLock example.
The top-level docs for `LazyLock` included two lines of code, each
with an accompanying comment, that were identical and with nearly-
identical comments. This looks like an oversight from a past edit
which was perhaps trying to rewrite an existing example but ended
up duplicating rather than replacing, though I haven't gone back
through the Git history to check.

This commit removes what I personally think is the less-clear of
the two examples.

Signed-off-by: Andrew Lilley Brinker <alilleybrinker@gmail.com>
2024-09-16 14:21:05 -07:00
..
barrier std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
condvar SeqCst->Relaxed in condvar test. 2024-03-20 15:38:09 +01:00
lazy_lock Reformat use declarations. 2024-07-29 08:26:52 +10:00
mpmc Fixed some typos in the standard library documentation/comments 2024-08-31 14:41:01 +09:00
mpsc Reformat use declarations. 2024-07-29 08:26:52 +10:00
mutex Specify behavior if the closure passed to *Guard::*map panics. 2023-12-05 17:30:46 -06:00
once std: fix busy-waiting in Once::wait_force, add more tests 2024-07-31 17:44:10 +02:00
once_lock Reformat use declarations. 2024-07-29 08:26:52 +10:00
reentrant_lock remove an unused type from the reentrant lock tests 2024-04-22 19:36:21 +02:00
rwlock rwlock: disable 'frob' test in Miri on macOS 2024-08-08 11:15:18 +02:00
barrier.rs Replace move|| with move || in compiler/ and library/ 2024-06-18 23:25:08 +08:00
condvar.rs Adjust doc comment of Condvar::wait_while 2024-09-06 13:36:09 +02:00
lazy_lock.rs fix: Remove duplicate LazyLock example. 2024-09-16 14:21:05 -07:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mutex.rs docs(sync): normalize dot in fn summaries 2024-03-22 23:04:20 +01:00
once.rs Rollup merge of #127567 - joboet:once_wait, r=Amanieu 2024-08-01 00:50:10 +02:00
once_lock.rs Remove stray word in a comment 2024-09-02 09:44:03 -04:00
poison.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
reentrant_lock.rs chore: remove repetitive words 2024-09-02 19:02:28 +08:00
rwlock.rs Fix doc nits 2024-07-26 13:26:33 +01:00