]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve password-cache-add example in comment
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 May 2020 22:42:18 +0000 (15:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 May 2020 22:47:25 +0000 (15:47 -0700)
* lisp/password-cache.el: Improve comment.  See Andreas Schwab in:
https://lists.gnu.org/r/emacs-devel/2020-05/msg02422.html

lisp/password-cache.el

index 86d802f283c27b258951c1363a3bff8ab2e7ea9c..f5007579a8a133535ddfd5d8d194695ee22fe441 100644 (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")