Fix example code, closes #572

This commit is contained in:
Jonas Dellinger 2021-03-28 22:40:25 +02:00 committed by GitHub
parent e59f9c3c84
commit 0f6cdeb693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ var me = await spotify.UserProfile.Current();
Console.WriteLine($"Hello there {me.DisplayName}"); Console.WriteLine($"Hello there {me.DisplayName}");
await foreach( await foreach(
var playlist in spotify.Paginate(spotify.Playlists.CurrentUsers()) var playlist in spotify.Paginate(await spotify.Playlists.CurrentUsers())
) )
{ {
Console.WriteLine(playlist.Name); Console.WriteLine(playlist.Name);