1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/io-console] [DOC] Note that IO#getpass returns a chomped string

IO#getpass uses String#chomp! on the read input line.

https://github.com/ruby/io-console/commit/1e98c93bc8
This commit is contained in:
Marcus Stollsteimer 2020-12-23 17:41:16 +01:00 committed by Nobuyoshi Nakada
parent 3adf84a079
commit 451b456051

View file

@ -1574,6 +1574,10 @@ str_chomp(VALUE str)
* Reads and returns a line without echo back.
* Prints +prompt+ unless it is +nil+.
*
* The newline character that terminates the
* read line is removed from the returned string,
* see String#chomp!.
*
* You must require 'io/console' to use this method.
*/
static VALUE