pdp10_stdio:fseek/2: correct -spec

This commit is contained in:
Mikael Pettersson 2019-02-24 13:35:38 +01:00
parent d394dc856a
commit b37c24d009

View File

@ -132,8 +132,7 @@ fputc(Nonet, #file{pid = Pid}) ->
fwrite(Nonets, #file{pid = Pid}) ->
gen_server:call(Pid, {fwrite, Nonets}, infinity).
-spec fseek(#file{}, file:location())
-> {ok, non_neg_integer()} | {error, any()}.
-spec fseek(#file{}, file:location()) -> ok | {error, any()}.
fseek(#file{pid = Pid}, Location) ->
gen_server:call(Pid, {fseek, Location}, infinity).