From f78969ebf79a49289f0e14e4b8a5928ba79cb733 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sat, 27 Aug 2022 10:08:51 +0200 Subject: [PATCH] Update documentation --- CHANGELOG.md | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa01a3c..538c4c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Breaking - Update [`parking_lot`][parking_lot] dependency to `0.12`. +- Restructured the crate to reduce typename verbosity. For details, see: #25. ### Fixed diff --git a/README.md b/README.md index 4513fac..99f2791 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,9 @@ Replacements for the synchronization primitives in `std::sync` can be found in t Support for other synchronization primitives is planned. ```rust -use tracing_mutex::stdsync::TracingMutex; +use tracing_mutex::stdsync::Mutex; -let some_mutex = TracingMutex::new(42); +let some_mutex = Mutex::new(42); *some_mutex.lock().unwrap() += 1; println!("{:?}", some_mutex); ```