Skip to content

Commit fc2327e

Browse files
Copilotjackfirth
andcommitted
Add comment explaining rule precedence
Co-authored-by: jackfirth <[email protected]>
1 parent 3a3e50d commit fc2327e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

default-recommendations/console-io-suggestions.rkt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
(display s))
5656

5757

58+
;; Rules are ordered from most specific to least specific. printf-newline-only handles the
59+
;; special case of "\n", printf-ending-with-newline handles strings ending with newlines,
60+
;; and printf-without-newline handles all other strings.
5861
(define-refactoring-suite console-io-suggestions
5962
#:rules (printf-newline-only
6063
printf-ending-with-newline

0 commit comments

Comments
 (0)