From 904b9b94b2b94852922ec7e5d90ee096af90d240 Mon Sep 17 00:00:00 2001 From: Alex Rao Date: Wed, 20 Apr 2022 12:42:27 -0700 Subject: [PATCH] Update IDisposable.xml Fix a typo (`staatement` to `statement`) --- xml/System/IDisposable.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System/IDisposable.xml b/xml/System/IDisposable.xml index 157a83b7730..1eb44ddac47 100644 --- a/xml/System/IDisposable.xml +++ b/xml/System/IDisposable.xml @@ -75,7 +75,7 @@ ### The C#, F#, and Visual Basic Using statement - If your language supports a construct such as the [using](/dotnet/csharp/language-reference/keywords/using) statement in C#, the [Using](/dotnet/visual-basic/language-reference/statements/using-statement) statement in Visual Basic, or the [use](/dotnet/fsharp/language-reference/resource-management-the-use-keyword) staatement in F#, you can use it instead of explicitly calling yourself. The following example uses this approach in defining a `WordCount` class that preserves information about a file and the number of words in it. + If your language supports a construct such as the [using](/dotnet/csharp/language-reference/keywords/using) statement in C#, the [Using](/dotnet/visual-basic/language-reference/statements/using-statement) statement in Visual Basic, or the [use](/dotnet/fsharp/language-reference/resource-management-the-use-keyword) statement in F#, you can use it instead of explicitly calling yourself. The following example uses this approach in defining a `WordCount` class that preserves information about a file and the number of words in it. :::code language="csharp" source="~/snippets/csharp/System/IDisposable/Overview/calling1.cs" id="Snippet1"::: :::code language="fsharp" source="~/snippets/fsharp/System/IDisposable/Overview/calling1.fs" id="Snippet1":::