console-rs / dialoguer

Rust utility library for nice command line prompts and similar things
MIT License
1.33k stars 142 forks source link

Count characters in `password` example instead of bytes #276

Closed Gordon01 closed 1 year ago

Gordon01 commented 1 year ago

A password example contains a typical Rust bug when String's number of bytes is checked instead of characters.

Password::interact_on() doc is updated here too.

Gordon01 commented 1 year ago

Done