[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 091b22cb12: Fix hash table function return values in manual
From: |
Basil L. Contovounesios |
Subject: |
emacs-28 091b22cb12: Fix hash table function return values in manual |
Date: |
Tue, 28 Jun 2022 03:05:25 -0400 (EDT) |
branch: emacs-28
commit 091b22cb123c437324bd64c5b7d9d2596da4264c
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Fix hash table function return values in manual
* doc/lispref/hash.texi (Hash Access): Reconcile documented return
values of puthash and clrhash with their respective
docstrings (bug#55562).
---
doc/lispref/hash.texi | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/hash.texi b/doc/lispref/hash.texi
index a566d89824..34eda45b23 100644
--- a/doc/lispref/hash.texi
+++ b/doc/lispref/hash.texi
@@ -203,7 +203,8 @@ association in @var{table}.
@defun puthash key value table
This function enters an association for @var{key} in @var{table}, with
value @var{value}. If @var{key} already has an association in
-@var{table}, @var{value} replaces the old associated value.
+@var{table}, @var{value} replaces the old associated value. This
+function always returns @var{value}.
@end defun
@defun remhash key table
@@ -219,10 +220,7 @@ otherwise. In Emacs Lisp, @code{remhash} always returns
@code{nil}.
@defun clrhash table
This function removes all the associations from hash table @var{table},
so that it becomes empty. This is also called @dfn{clearing} the hash
-table.
-
-@b{Common Lisp note:} In Common Lisp, @code{clrhash} returns the empty
-@var{table}. In Emacs Lisp, it returns @code{nil}.
+table. @code{clrhash} returns the empty @var{table}.
@end defun
@defun maphash function table
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 091b22cb12: Fix hash table function return values in manual,
Basil L. Contovounesios <=