Changed "contex" typo to "context" (#450)

This commit is contained in:
Jesper 2020-05-06 21:09:26 +02:00 committed by GitHub
parent f0de94351f
commit 2392f8f356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ devices.Devices.ForEach(device => Console.WriteLine(device.Name));
```csharp ```csharp
PlaybackContext context = _spotify.GetPlayback(); PlaybackContext context = _spotify.GetPlayback();
if(contex.Item != null) if(context.Item != null)
Console.WriteLine(context.Item.Name)); //Print the current song Console.WriteLine(context.Item.Name)); //Print the current song
``` ```
@ -51,7 +51,7 @@ This is a simpler (less data) version of `GetPlayback`
```csharp ```csharp
PlaybackContext context = _spotify.GetPlayingTrack(); PlaybackContext context = _spotify.GetPlayingTrack();
if(contex.Item != null) if(context.Item != null)
Console.WriteLine(context.Item.Name)); //Print the current song Console.WriteLine(context.Item.Name)); //Print the current song
``` ```