Skip to content
Snippets Groups Projects
Commit 03e18425 authored by Po Chen's avatar Po Chen Committed by Xiangrong Hao
Browse files

Fix typespec (#50)

It should be atom type, not the specific atom `:atom`
parent 79a9a007
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ defmodule FileSystem.Backend do ...@@ -16,7 +16,7 @@ defmodule FileSystem.Backend do
When a custom module is given, make sure `start_link/1`, `bootstrap/0` and When a custom module is given, make sure `start_link/1`, `bootstrap/0` and
`supported_system/0` are defnied. `supported_system/0` are defnied.
""" """
@spec backend(:atom) :: {:ok, atom()} | {:error, atom()} @spec backend(atom) :: {:ok, atom()} | {:error, atom()}
def backend(backend) do def backend(backend) do
with {:ok, module} <- backend_module(backend), with {:ok, module} <- backend_module(backend),
:ok <- validate_os(backend, module), :ok <- validate_os(backend, module),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment