Skip to content

Commit 9a7f396

Browse files
craigplpil
authored andcommitted
Add parentheses for IO call since the code formatter prefers it that way
1 parent 250fd91 commit 9a7f396

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/elixir.snippets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ snippet do
33
${0:${VISUAL}}
44
end
55
snippet put IO.puts
6-
IO.puts "${0}"
6+
IO.puts("${0}")
77
snippet ins IO.inspect
8-
IO.inspect ${0}
8+
IO.inspect(${0})
99
snippet insl IO.inspect with label
1010
IO.inspect(${0}label: "${1:label}")
1111
snippet if if .. do .. end
@@ -247,7 +247,7 @@ snippet >f pipe to filter
247247
snippet >r pipe to reduce
248248
|> Enum.reduce(${1:acc}, fn ${2}, ${3:acc} -> ${0} end)
249249
snippet >i pipe to inspect
250-
|> IO.inspect
250+
|> IO.inspect()
251251
snippet >il pipe to inspect with label
252252
|> IO.inspect(label: "${1:label}")
253253
snippet cs

0 commit comments

Comments
 (0)