mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #153511 - DanielEScherzer:patch-3, r=scottmcm
`std::any::TypeId`: remove misplaced "and" in `Unique<T>` example
This commit is contained in:
@@ -666,7 +666,7 @@ pub unsafe fn downcast_unchecked_mut<T: Any>(&mut self) -> &mut T {
|
||||
///
|
||||
/// The following is an example program that tries to use `TypeId::of` to
|
||||
/// implement a generic type `Unique<T>` that guarantees unique instances for each `Unique<T>`,
|
||||
/// that is, and for each type `T` there can be at most one value of type `Unique<T>` at any time.
|
||||
/// that is, for each type `T` there can be at most one value of type `Unique<T>` at any time.
|
||||
///
|
||||
/// ```
|
||||
/// mod unique {
|
||||
|
||||
Reference in New Issue
Block a user