docs(ast): use valid variance example for TSTypeParameter (#26962)

This commit is contained in:
camc314 committed 2026-09-23 13:49:33 +00:00
1 parent 6fe829bbd8
commit f7ef2e2431
1 file changed
+4 -2
+4 -2
View File
@@ -852,8 +852,10 @@ pub struct TSTypeParameterInstantiation<'a> {
/// type Box<T extends string = 'foo'> = { value: T };
/// // name ^ ^^^^^ default
///
/// function add<in T>(a: T, b: T): T { return a + b; }
/// // ^^ in: true
/// interface Consumer<in T> {
/// // ^^ in: true
/// consume(value: T): void;
/// }
/// ```
///
/// ## References