Skip to content

Commit f1d3a8a

Browse files
committed
make small example work
1 parent 04fa635 commit f1d3a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl dyn Any + Send + Sync {
627627
/// ```
628628
/// type SubType = fn(&());
629629
/// type SuperType = fn(&'static ());
630-
/// type CoVar<T> = Box<T>; // imagine something more complicated
630+
/// type CoVar<T> = Vec<T>; // imagine something more complicated
631631
///
632632
/// let sub: CoVar<SubType> = CoVar::new();
633633
/// // we have a `CoVar<SuperType>` instance without

0 commit comments

Comments
 (0)