Skip to content

Commit d8a5af5

Browse files
Fixes outdated documentation in rpassword
1 parent 4ad0219 commit d8a5af5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ pub use wasm::read_password;
238238
#[cfg(target_family = "windows")]
239239
pub use windows::read_password;
240240

241-
/// Reads a password from anything that implements BufRead
241+
/// Reads a password from `impl BufRead`
242242
pub fn read_password_from_bufread(reader: &mut impl BufRead) -> std::io::Result<String> {
243243
let mut password = SafeString::new();
244244
reader.read_line(&mut password)?;
245245

246246
fix_line_issues(password.into_inner())
247247
}
248248

249-
/// Prompts on the TTY and then reads a password from anything that implements BufRead
249+
/// Prompts on `impl Write` and then reads a password from `impl BufRead`
250250
pub fn prompt_password_from_bufread(
251251
reader: &mut impl BufRead,
252252
writer: &mut impl Write,

0 commit comments

Comments
 (0)