Skip to content

Commit 6314c1b

Browse files
committed
Fix typespec
1 parent e0f7de6 commit 6314c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/protobuf/presence.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule Protobuf.Presence do
1515
always have implicit presence. In these cases, if the presence is ambiguous,
1616
returns `:maybe`.
1717
"""
18-
@spec field_presence(Protobuf.Message.t(), atom()) :: :present | :not_present | :maybe
18+
@spec field_presence(message :: struct(), field :: atom()) :: :present | :not_present | :maybe
1919
def field_presence(%mod{} = message, field) do
2020
message_props = mod.__message_props__()
2121
transformed_message = transform_module(message, mod)

0 commit comments

Comments
 (0)