Fixed examples

master
Aaron Power 6 years ago
parent 5ac40cd682
commit 75eea88023
  1. 2
      src/lib.rs
  2. 2
      src/registration.rs

@ -27,7 +27,7 @@
//! let code = String::from("RETURNED_FROM_BROWSER");
//! let mastodon = registration.create_access_token(code)?;
//!
//! println!("{:?}", mastodon.get_home_timeline()?);
//! println!("{:?}", mastodon.get_home_timeline()?.initial_items);
//! # Ok(())
//! # }
//! ```

@ -68,7 +68,7 @@ impl Registration {
/// let code = String::from("RETURNED_FROM_BROWSER");
/// let mastodon = registration.create_access_token(code)?;
///
/// println!("{:?}", mastodon.get_home_timeline()?);
/// println!("{:?}", mastodon.get_home_timeline()?.initial_items);
/// # Ok(())
/// # }
/// ```

Loading…
Cancel
Save