Improve password-cache-add example in comment

* lisp/password-cache.el: Improve comment.  See Andreas Schwab in:
https://lists.gnu.org/r/emacs-devel/2020-05/msg02422.html
This commit is contained in:
Paul Eggert 2020-05-18 15:42:18 -07:00
parent 3d1bcfba5e
commit b1cd1f0b5a

View file

@ -31,7 +31,8 @@
;; ;; Minibuffer prompt for password.
;; => "foo"
;;
;; (password-cache-add "test" (copy-sequence "foo"))
;; (password-cache-add "test" (read-passwd "Password? "))
;; ;; Minibuffer prompt from read-passwd, which returns "foo".
;; => nil
;; (password-read "Password? " "test")