зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-06 07:35:51 +03:00
fixed some spelling mistakes
Этот коммит содержится в:
@@ -300,7 +300,7 @@ let mut textarea = TextArea::from([
|
|||||||
|
|
||||||
// Create `TextArea` from `String`
|
// Create `TextArea` from `String`
|
||||||
let mut text: String = ...;
|
let mut text: String = ...;
|
||||||
let mut textarea = TextARea::from(text.lines());
|
let mut textarea = TextArea::from(text.lines());
|
||||||
```
|
```
|
||||||
|
|
||||||
`TextArea` also implements `FromIterator<impl Into<String>>`. `Iterator::collect()` can collect strings as an editor
|
`TextArea` also implements `FromIterator<impl Into<String>>`. `Iterator::collect()` can collect strings as an editor
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
|
||||||
#[cfg(all(feature = "ratatui", feature = "tuirs"))]
|
#[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 cursor;
|
||||||
mod highlight;
|
mod highlight;
|
||||||
|
|||||||
@@ -1345,7 +1345,7 @@ impl<'a> TextArea<'a> {
|
|||||||
self.mask = None;
|
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;
|
/// use tui_textarea::TextArea;
|
||||||
///
|
///
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user