Merge pull request #322 from yaymukund/fix-docs-typo

Fix a typo in text-view.rs (`content` -> `view`)
This commit is contained in:
Alexandre Bury 2019-03-04 12:48:55 -08:00 committed by GitHub
commit ef4448efe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ use crate::{Printer, Vec2, With, XY};
///
/// // Later, possibly in a different thread
/// content.set_content("new content");
/// assert!(content.get_content().source().contains("new"));
/// assert!(view.get_content().source().contains("new"));
/// ```
#[derive(Clone)]
pub struct TextContent {
@ -198,7 +198,7 @@ impl TextView {
///
/// // Later, possibly in a different thread
/// content.set_content("new content");
/// assert!(content.get_content().source().contains("new"));
/// assert!(view.get_content().source().contains("new"));
/// ```
pub fn new_with_content(content: TextContent) -> Self {
TextView {