Skip to content

Commit 2e61355

Browse files
committed
Fix some comments
1 parent d48883e commit 2e61355

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/Nitpick/PatternMatchesSpec.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ runCheckPatterns patterns =
170170
-- checkPatterns returns an [Error],
171171
-- which can have [Pattern] in it.
172172
-- This is cumbersome to test in the unit tests.
173-
-- We convert each [Error] (and thus, [Pattern]) to a String,
173+
-- We convert each Error (and thus, [Pattern]) to a [String],
174174
-- making it a lot easier to assert on in the unit tests.
175175
--
176176
-- E.g., this [Error]
@@ -217,7 +217,6 @@ patternToTestableString pat =
217217
Literal (Str s) -> Utf8.toChars s
218218
Literal (Int n) -> show n -- convert Int to String
219219

220-
--Array patterns -> "[ " ++ (intercalate ", " (map patternToTestableString patterns)) ++ " ]"
221220
Array patterns -> patternsToTestableString patterns
222221

223222
Ctor _ vName patterns ->

0 commit comments

Comments
 (0)