diff options
| author | Eli Zaretskii | 2023-11-23 17:26:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-23 17:26:09 +0200 |
| commit | 5a5e36d2aad77a4eb80249895d809187630eacc8 (patch) | |
| tree | 275389d13473906cf14b73aa20204fc0d0487457 | |
| parent | 86016d8ecdb3db4a1a2c6f85a4239f2fdaacd69a (diff) | |
| download | emacs-5a5e36d2aad77a4eb80249895d809187630eacc8.tar.gz emacs-5a5e36d2aad77a4eb80249895d809187630eacc8.zip | |
; Improve function documentation tips
* doc/lispref/tips.texi (Documentation Tips): Clarify the good
style of descriptions in doc strings.
| -rw-r--r-- | doc/lispref/tips.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index db9f64aa8a0..f0d4753e41b 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi | |||
| @@ -631,7 +631,12 @@ first line with a capital letter and end it with a period. | |||
| 631 | 631 | ||
| 632 | For a function, the first line should briefly answer the question, | 632 | For a function, the first line should briefly answer the question, |
| 633 | ``What does this function do?'' For a variable, the first line should | 633 | ``What does this function do?'' For a variable, the first line should |
| 634 | briefly answer the question, ``What does this value mean?'' | 634 | briefly answer the question, ``What does this value mean?'' Prefer to |
| 635 | answer these questions in a way that will make sense to users and | ||
| 636 | callers of the function or the variable. In particular, do @emph{not} | ||
| 637 | tell what the function does by enumerating the actions of its code; | ||
| 638 | instead, describe the role of these actions and the function's | ||
| 639 | contract. | ||
| 635 | 640 | ||
| 636 | Don't limit the documentation string to one line; use as many lines as | 641 | Don't limit the documentation string to one line; use as many lines as |
| 637 | you need to explain the details of how to use the function or | 642 | you need to explain the details of how to use the function or |