Skip to content

Commit 1b9a0d8

Browse files
committed
Merge pull request #17 from Bruce-Connor/fix-predicate-example
Describe when predicates take a hyphen.
2 parents a47ce75 + ac574ae commit 1b9a0d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,13 @@ name clashes.
307307
* Use `--` to denote private top-level definitions (e.g. `projectile--private-fun`).
308308
309309
* The names of predicate methods (methods that return a boolean value)
310-
should end in a `p` or `-p`
311-
(e.g., `evenp`).
310+
should end in a `p` if it's a single-word name and a `-p` if it's a
311+
multi-word name (e.g., `evenp` and `buffer-live-p`).
312312
313313
```el
314314
;; good
315-
(defun palindrome-p ...)
315+
(defun palindromep ...)
316+
(defun only-one-p ...)
316317
317318
;; bad
318319
(defun palindrome? ...) ; Scheme style

0 commit comments

Comments
 (0)