Skip to content

Commit a561f81

Browse files
author
José Valim
committed
Update return types in docs for Mix.Generator functions, closes #9749
1 parent 739c1b6 commit a561f81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/mix/lib/mix/generator.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule Mix.Generator do
1818
1919
iex> Mix.Generator.create_file(".gitignore", "_build\ndeps\n")
2020
* creating .gitignore
21-
:ok
21+
true
2222
2323
"""
2424
@spec create_file(Path.t(), iodata, keyword) :: boolean()
@@ -48,7 +48,7 @@ defmodule Mix.Generator do
4848
4949
iex> Mix.Generator.create_directory("path/to/dir")
5050
* creating path/to/dir
51-
:ok
51+
true
5252
5353
"""
5454
@spec create_directory(Path.t(), keyword) :: true
@@ -73,7 +73,7 @@ defmodule Mix.Generator do
7373
7474
iex> Mix.Generator.copy_file("source/gitignore", ".gitignore", "_build\ndeps\n")
7575
* creating .gitignore
76-
:ok
76+
true
7777
7878
"""
7979
@doc since: "1.9.0"
@@ -99,7 +99,7 @@ defmodule Mix.Generator do
9999
100100
iex> Mix.Generator.copy_template("source/gitignore", ".gitignore", [project_path: path])
101101
* creating .gitignore
102-
:ok
102+
true
103103
104104
"""
105105
@doc since: "1.9.0"

0 commit comments

Comments
 (0)