Use bracket initialization in example code.
This commit is contained in:
parent
9ccd724693
commit
a237d74a81
|
@ -213,8 +213,8 @@ public:
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* @code
|
* @code
|
||||||
* mastodonpp::Instance instance("example.com", {});
|
* mastodonpp::Instance instance{"example.com", {}};
|
||||||
* mastodonpp::Instance::ObtainToken token(instance);
|
* mastodonpp::Instance::ObtainToken token{instance};
|
||||||
* auto answer{token.step1("Good program", "read:blocks read:mutes", "")};
|
* auto answer{token.step1("Good program", "read:blocks read:mutes", "")};
|
||||||
* if (answer)
|
* if (answer)
|
||||||
* {
|
* {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user