Fixed examples

This commit is contained in:
Aaron Power
2018-03-02 20:27:32 +00:00
parent 5ac40cd682
commit 75eea88023
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
//! let code = String::from("RETURNED_FROM_BROWSER"); //! let code = String::from("RETURNED_FROM_BROWSER");
//! let mastodon = registration.create_access_token(code)?; //! let mastodon = registration.create_access_token(code)?;
//! //!
//! println!("{:?}", mastodon.get_home_timeline()?); //! println!("{:?}", mastodon.get_home_timeline()?.initial_items);
//! # Ok(()) //! # Ok(())
//! # } //! # }
//! ``` //! ```
+1 -1
View File
@@ -68,7 +68,7 @@ impl Registration {
/// let code = String::from("RETURNED_FROM_BROWSER"); /// let code = String::from("RETURNED_FROM_BROWSER");
/// let mastodon = registration.create_access_token(code)?; /// let mastodon = registration.create_access_token(code)?;
/// ///
/// println!("{:?}", mastodon.get_home_timeline()?); /// println!("{:?}", mastodon.get_home_timeline()?.initial_items);
/// # Ok(()) /// # Ok(())
/// # } /// # }
/// ``` /// ```