Skip to content

Commit a060c99

Browse files
committed
Apply suggestions by @josevalim
1 parent b55888b commit a060c99

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/mix/lib/mix.ex

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ defmodule Mix do
452452
import Kernel, except: [raise: 2]
453453

454454
@doc false
455-
@spec start() :: :ok
456455
def start do
457456
{:ok, _} = Application.ensure_all_started(:mix)
458457
:ok
@@ -486,7 +485,7 @@ defmodule Mix do
486485
Proper configuration can be set in config files, often per-environment
487486
(see the `Config` module for more information).
488487
"""
489-
@spec env() :: env :: atom()
488+
@spec env() :: atom()
490489
def env do
491490
# env is not available on bootstrapping, so set a :dev default
492491
Mix.State.get(:env, :dev)
@@ -509,7 +508,7 @@ defmodule Mix do
509508
@doc """
510509
Returns the Mix target.
511510
"""
512-
@spec target() :: target :: atom()
511+
@spec target() :: atom()
513512
def target do
514513
# target is not available on bootstrapping, so set a :host default
515514
Mix.State.get(:target, :host)
@@ -652,7 +651,7 @@ defmodule Mix do
652651
The path for local archives or escripts.
653652
"""
654653
@doc since: "1.10.0"
655-
@spec path_for(kind :: :archives | :escripts) :: String.t()
654+
@spec path_for(:archives | :escripts) :: String.t()
656655
def path_for(kind)
657656

658657
def path_for(:archives) do
@@ -1225,6 +1224,5 @@ defmodule Mix do
12251224
end
12261225

12271226
@doc false
1228-
@spec install?() :: boolean()
12291227
def install?, do: Mix.Project.get() == @mix_install_project
12301228
end

0 commit comments

Comments
 (0)