diff --git a/doc/analyzers/VSTHRD112.md b/doc/analyzers/VSTHRD112.md index 2b78cd17..b9e3ae45 100644 --- a/doc/analyzers/VSTHRD112.md +++ b/doc/analyzers/VSTHRD112.md @@ -49,7 +49,7 @@ class SomeClass : System.IAsyncDisposable, Microsoft.VisualStudio.Threading.IAsy { // Simply forward the call to the other DisposeAsync overload. System.IAsyncDisposable self = this; - return self.Dispose().AsTask(); + return self.DisposeAsync().AsTask(); } ValueTask System.IAsyncDisposable.DisposeAsync()