Skip to content

Commit

Permalink
docs: attempt to improve clarity of code sample in README
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Feb 23, 2024
1 parent eeb0535 commit 760be80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ end
Something like this would be enough:

```elixir
# In mix.exs
# mix.exs

defmodule YourApp.MixProject do
use Mix.Project

def project do
[
Expand All @@ -119,13 +122,16 @@ Something like this would be enough:
|> Keyword.merge(maybe_lockfile_option())
end

...

defp maybe_lockfile_option do
case System.get_env("MIX_LOCKFILE") do
nil -> []
"" -> []
lockfile -> [lockfile: lockfile]
end
end
end
```

##### 4. Enjoy
Expand Down

0 comments on commit 760be80

Please sign in to comment.