Fix spec error type (#181)

This commit is contained in:
Cheng Zhe 2021-04-15 14:56:20 +08:00 committed by GitHub
parent bfaf6b7776
commit 9978d29831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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