From bfbdf5c26bff66eb436c187eea67fcf9cba00d67 Mon Sep 17 00:00:00 2001 From: mukund Date: Mon, 4 Mar 2019 12:10:35 -0800 Subject: [PATCH] Fix a typo in text-view.rs (`content` -> `view`) --- src/views/text_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/text_view.rs b/src/views/text_view.rs index e8d2628..de4a372 100644 --- a/src/views/text_view.rs +++ b/src/views/text_view.rs @@ -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 {