summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2018-08-27 16:06:00 -0400
committerPaul Woolcock <paul@woolcock.us>2018-08-27 19:28:33 -0400
commit0df3f9fa2b0e48a288c54dcc67c364ec9a454a95 (patch)
treea29f2bea8d3cad0a2f07cfae6173fbcba8e5f6a4 /README.md
parent39e5aacfb58290c2ca21f3204f61df8d45df5130 (diff)
Rework the `Registration` and `App` APIs
This puts `register` back to the way it was, and changes the "new" `register` to `build`.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index f25c9f4..e89d1dd 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ fn main() -> Result<(), Box<Error>> {
fn register() -> Result<Mastodon, Box<Error>> {
let registration = Registration::new("https://mastodon.social")
.client_name("elefren-examples")
- .register()?;
+ .build()?;
let url = registration.authorize_url()?;
println!("Click this link to authorize on Mastodon: {}", url);