We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187ca47 commit 611cac3Copy full SHA for 611cac3
README.md
@@ -258,6 +258,22 @@
258
end)
259
```
260
261
+* <a name="space-before-anonymous-fun-arrow"></a>
262
+ Always use a space before `->` in 0-arity anonymous functions.
263
+ <sup>[[link](#space-before-anonymous-fun-arrow)]</sup>
264
+
265
+ ```elixir
266
+ # Bad
267
+ Task.async(fn->
268
+ ExUnit.Diff.script(left, right)
269
+ end)
270
271
+ # Good
272
+ Task.async(fn ->
273
274
275
+ ```
276
277
* <a name="pipeline-operator"></a>
278
Favor the pipeline operator `|>` to chain function calls together.
279
<sup>[[link](#pipeline-operator)]</sup>
0 commit comments