Skip to content

Commit f73ed31

Browse files
committed
does not feel secondary
1 parent d84440d commit f73ed31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/conventions.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ variants are added to the enum, they may not get handled correctly.
105105
Ask yourself: if a new variant were added to this enum, what's the
106106
chance that it would want to use the `_` code, versus having some
107107
other treatment? Unless the answer is "low", then prefer an
108-
exhaustive match. (The same advice applies to `if let` and `while
109-
let`, which are effectively tests for a single variant.)
108+
exhaustive match.
109+
110+
The same advice applies to `if let` and `while let`,
111+
which are effectively tests for a single variant.
110112

111113
### Use "TODO" comments for things you don't want to forget
112114

0 commit comments

Comments
 (0)