Rollup merge of #153511 - DanielEScherzer:patch-3, r=scottmcm

`std::any::TypeId`: remove misplaced "and" in `Unique<T>` example
This commit is contained in:
Jacob Pratt
2026-04-18 00:05:17 -04:00
committed by GitHub
+1 -1
View File
@@ -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 {