diff --git a/README.md b/README.md index d555694..6da46dc 100644 --- a/README.md +++ b/README.md @@ -300,7 +300,7 @@ let mut textarea = TextArea::from([ // Create `TextArea` from `String` let mut text: String = ...; -let mut textarea = TextARea::from(text.lines()); +let mut textarea = TextArea::from(text.lines()); ``` `TextArea` also implements `FromIterator>`. `Iterator::collect()` can collect strings as an editor diff --git a/src/lib.rs b/src/lib.rs index c21aee5..e37d3f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ #![doc = include_str!("../README.md")] #[cfg(all(feature = "ratatui", feature = "tuirs"))] -compile_error!("ratatui support and tui-rs support are exclussive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea#installation"); +compile_error!("ratatui support and tui-rs support are exclusive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea#installation"); mod cursor; mod highlight; diff --git a/src/textarea.rs b/src/textarea.rs index 2d4c620..8bfb794 100644 --- a/src/textarea.rs +++ b/src/textarea.rs @@ -1345,7 +1345,7 @@ impl<'a> TextArea<'a> { self.mask = None; } - /// Get the charater to mask text. When no character is set, `None` is returned. + /// Get the character to mask text. When no character is set, `None` is returned. /// ``` /// use tui_textarea::TextArea; ///