summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-05-18 15:42:18 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-05-18 15:47:25 -0700
commitb1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2 (patch)
tree94b376105f9417c1e276b6f69f59f42de1a2d003
parent3d1bcfba5e21b29be8669aa2a8f27b344c9e02fd (diff)
downloademacs-b1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2.tar.gz
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
-rw-r--r--lisp/password-cache.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/password-cache.el b/lisp/password-cache.el
index 86d802f283c..f5007579a8a 100644
--- a/lisp/password-cache.el
+++ b/lisp/password-cache.el
@@ -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")