mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
Fix read_line
docs (#629)
The result type is not `crossterm::Result` (anymore), but `std::io::Result`
This commit is contained in:
parent
31257a4c54
commit
409b51784f
@ -593,9 +593,8 @@ impl Reedline {
|
||||
|
||||
/// Wait for input and provide the user with a specified [`Prompt`].
|
||||
///
|
||||
/// Returns a [`crossterm::Result`] in which the `Err` type is [`crossterm::ErrorKind`]
|
||||
/// to distinguish I/O errors and the `Ok` variant wraps a [`Signal`] which
|
||||
/// handles user inputs.
|
||||
/// Returns a [`std::io::Result`] in which the `Err` type is [`std::io::Result`]
|
||||
/// and the `Ok` variant wraps a [`Signal`] which handles user inputs.
|
||||
pub fn read_line(&mut self, prompt: &dyn Prompt) -> Result<Signal> {
|
||||
terminal::enable_raw_mode()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user