diff --git a/docs/generic-constraints.md b/docs/generic-constraints.md index 0fb0262..14c0cc9 100644 --- a/docs/generic-constraints.md +++ b/docs/generic-constraints.md @@ -44,7 +44,7 @@ local function callbackProperty>( object: T, key: K, callback: ( callback( object[key] ) end -callbackProperty( object, "foo", function( foo ) +callbackProperty( qux, "foo", function( foo ) -- foo: number -- this is expected! end) ```