mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-03 18:35:41 +08:00
Fix spec error type (#181)
This commit is contained in:
parent
bfaf6b7776
commit
9978d29831
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ defmodule LivebookWeb.Helpers do
|
|||
@doc """
|
||||
Determines user platform based on the given *User-Agent* header.
|
||||
"""
|
||||
@spec platform_from_user_agent(Sting.t()) :: :linux | :mac | :windows | :other
|
||||
@spec platform_from_user_agent(String.t()) :: :linux | :mac | :windows | :other
|
||||
def platform_from_user_agent(user_agent) when is_binary(user_agent) do
|
||||
cond do
|
||||
linux?(user_agent) -> :linux
|
||||
|
|
Loading…
Reference in a new issue