Skip to content

Commit d5f35d4

Browse files
author
José Valim
committed
Update config.exs sample file
1 parent 0908e55 commit d5f35d4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/mix/lib/mix/tasks/new.ex

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ defmodule Mix.Tasks.New do
262262
end
263263
"""
264264

265-
embed_template :config, """
265+
embed_template :config, ~S"""
266266
# This file is responsible for configuring your application and
267267
# its dependencies. It must return a keyword list containing the
268-
# application name and another keyword list with the application
269-
# key-value pairs.
268+
# application name and have as value another keyword list with
269+
# the application key-value pairs.
270270
271271
# Note this configuration is loaded before any dependency and is
272272
# restricted to this project. If another project depends on this
@@ -276,13 +276,17 @@ defmodule Mix.Tasks.New do
276276
# in your mix.exs file. For example, you can emulate configuration
277277
# per environment by setting:
278278
#
279-
# config_path: "config/\#{Mix.env}.exs"
279+
# config_path: "config/#{Mix.env}.exs"
280280
#
281281
# Changing any file inside the config directory causes the whole
282282
# project to be recompiled.
283283
284-
[dep1: [key: :value],
285-
dep2: [key: :value]]
284+
# Sample configuration:
285+
#
286+
# [dep1: [key: :value],
287+
# dep2: [key: :value]]
288+
289+
[]
286290
"""
287291

288292
embed_template :lib, """

0 commit comments

Comments
 (0)