Skip to content

Commit f5b4709

Browse files
ma2gedevwhatyouhide
authored andcommitted
Revert the example of imported zero-arity function calls from d3ccd02 (#50)
1 parent 86f82a2 commit f5b4709

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,13 @@
356356
```elixir
357357
# Bad
358358
pid = self
359-
import System, only: [schedu]
359+
import System, only: [schedulers_online: 0]
360+
schedulers_online
360361

361362
# Good
362363
pid = self()
363-
def new(), do: %MapSet{}
364-
config = IEx.Config.new
364+
import System, only: [schedulers_online: 0]
365+
schedulers_online()
365366
```
366367

367368
The same should be done for __remote__ zero-arity function calls:

0 commit comments

Comments
 (0)