diff options
| author | athulappadan <a4athulappadan@gmail.com> | 2016-09-11 17:00:09 +0530 |
|---|---|---|
| committer | athulappadan <a4athulappadan@gmail.com> | 2016-09-11 17:00:09 +0530 |
| commit | 49e77dbf25ed6526fb5d37c32e55797fb04522f0 (patch) | |
| tree | c876b159c4833fe3a5f2c91dadb2194d77bfc057 /src/libstd/sync/mutex.rs | |
| parent | 1fca1ab0e7be574022b2d229f0a6ad9bd580d1bf (diff) | |
| download | rust-49e77dbf25ed6526fb5d37c32e55797fb04522f0.tar.gz rust-49e77dbf25ed6526fb5d37c32e55797fb04522f0.zip | |
Documentation of what does for each type
Diffstat (limited to 'src/libstd/sync/mutex.rs')
| -rw-r--r-- | src/libstd/sync/mutex.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs index c8ae88c2331..098a3e44258 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -287,6 +287,7 @@ impl<T: ?Sized> Drop for Mutex<T> { #[stable(feature = "mutex_default", since = "1.9.0")] impl<T: ?Sized + Default> Default for Mutex<T> { + /// Creates a `Mutex<T>`, with the `Default` value for T. fn default() -> Mutex<T> { Mutex::new(Default::default()) } |
