Use bracket initialization in example code.

This commit is contained in:
tastytea 2020-01-14 23:34:50 +01:00
parent 9ccd724693
commit a237d74a81
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ public:
*
* Example:
* @code
* mastodonpp::Instance instance("example.com", {});
* mastodonpp::Instance::ObtainToken token(instance);
* mastodonpp::Instance instance{"example.com", {}};
* mastodonpp::Instance::ObtainToken token{instance};
* auto answer{token.step1("Good program", "read:blocks read:mutes", "")};
* if (answer)
* {