Skip to content

Commit

Permalink
Merge pull request #24 from firezone/fix-pubkey-typespec
Browse files Browse the repository at this point in the history
Use proper return type in typespec for get_public_key
  • Loading branch information
Andrew authored Jun 21, 2022
2 parents bf9d0c5 + bd05e2d commit 19fd190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wireguardex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ defmodule Wireguardex do
Returns `{:ok, public_key}` if successful. `{:error, error_info}` will be returned if
if getting the public key fails.
"""
@spec get_public_key(key()) :: key() | {:error, String.t()}
@spec get_public_key(key()) :: {:ok, key()} | {:error, String.t()}
def get_public_key(_private_key), do: error()

defp error, do: :erlang.nif_error(:nif_not_loaded)
Expand Down

0 comments on commit 19fd190

Please sign in to comment.