Skip to content

Commit ae05b75

Browse files
authored
Merge pull request #106430 from GiftA-MSFT/patch-25
Fixes: MicrosoftDocs/azure-docs/issues/49301
2 parents 86eb70e + 753f22a commit ae05b75

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/cognitive-services/Bing-Spell-Check/sdk-quickstart-spell-check.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ To add the Bing Spell Check SDK to your project, select **Manage NuGet Packages*
6666
2. Get the first spell check result, if there is one. Print the first misspelled word (token) returned, the token type, and the number of suggestions.
6767

6868
```csharp
69-
if (firstspellCheckResult != null){
70-
var firstspellCheckResult = result.Body.FlaggedTokens.FirstOrDefault();
69+
var firstspellCheckResult = result.Body.FlaggedTokens.FirstOrDefault();
7170

71+
if (firstspellCheckResult != null)
72+
{
7273
Console.WriteLine("SpellCheck Results#{0}", result.Body.FlaggedTokens.Count);
7374
Console.WriteLine("First SpellCheck Result token: {0} ", firstspellCheckResult.Token);
7475
Console.WriteLine("First SpellCheck Result Type: {0} ", firstspellCheckResult.Type);
@@ -99,4 +100,4 @@ Build and run your project. If you're using Visual Studio, press **F5** to debug
99100
> [Create a single page web-app](tutorials/spellcheck.md)
100101

101102
- [What is the Bing Spell Check API?](overview.md)
102-
- [Bing Spell Check C# SDK reference guide](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/bingspellcheck?view=azure-dotnet)
103+
- [Bing Spell Check C# SDK reference guide](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/bingspellcheck?view=azure-dotnet)

0 commit comments

Comments
 (0)