We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ad0219 commit d8a5af5Copy full SHA for d8a5af5
1 file changed
src/lib.rs
@@ -238,15 +238,15 @@ pub use wasm::read_password;
238
#[cfg(target_family = "windows")]
239
pub use windows::read_password;
240
241
-/// Reads a password from anything that implements BufRead
+/// Reads a password from `impl BufRead`
242
pub fn read_password_from_bufread(reader: &mut impl BufRead) -> std::io::Result<String> {
243
let mut password = SafeString::new();
244
reader.read_line(&mut password)?;
245
246
fix_line_issues(password.into_inner())
247
}
248
249
-/// Prompts on the TTY and then reads a password from anything that implements BufRead
+/// Prompts on `impl Write` and then reads a password from `impl BufRead`
250
pub fn prompt_password_from_bufread(
251
reader: &mut impl BufRead,
252
writer: &mut impl Write,
0 commit comments