Skip to content

Commit

Permalink
Fix typos again (#196)
Browse files Browse the repository at this point in the history
Found via `typos --format brief`
  • Loading branch information
kianmeng authored May 16, 2024
1 parent 862ae79 commit 9f71a37
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/gproc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ select(Continuation::Arg) -> [Match] | {[Match], Continuation} | $end_of_tabl

Perform a select operation on the process registry

When Arg = Contination, resume a gproc:select/1 operation
When Arg = Continuation, resume a gproc:select/1 operation
(see [ets:select/1](http://www.erlang.org/doc/man/ets.html#select-1)

When Arg = <code><a href="#type-sel_pattern" docgen-rel="seetype" docgen-href="#sel_pattern/0">sel_pattern()</a></code>, this function executes a select operation,
Expand Down Expand Up @@ -1510,7 +1510,7 @@ variable substitution and ensure that the scan is limited.
### select/3 ###

<pre><code>
select(Context::<a href="#type-context">context()</a>, Pat::<a href="#type-sel_patten">sel_patten()</a>, Limit::integer()) -&gt; {[Match], Continuation} | $end_of_table
select(Context::<a href="#type-context">context()</a>, Pat::<a href="#type-sel_pattern">sel_pattern()</a>, Limit::integer()) -&gt; {[Match], Continuation} | $end_of_table
</code></pre>
<br />

Expand Down
6 changes: 3 additions & 3 deletions patches/stdlib/gen_fsm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ name_to_pid(Name) ->
undefined ->
case global:safe_whereis_name(Name) of
undefined ->
exit(could_not_find_registerd_name);
exit(could_not_find_registered_name);
Pid ->
Pid
end;
Expand Down Expand Up @@ -578,7 +578,7 @@ format_status(Opt, StatusData) ->
StatusData,
Header = lists:concat(["Status for state machine ", Name]),
Log = sys:get_debug(log, Debug, []),
Specfic =
Specific =
case erlang:function_exported(Mod, format_status, 2) of
true ->
case catch Mod:format_status(Opt,[PDict,StateData]) of
Expand All @@ -593,4 +593,4 @@ format_status(Opt, StatusData) ->
{"Parent", Parent},
{"Logged events", Log},
{"StateName", StateName}]} |
Specfic].
Specific].
6 changes: 3 additions & 3 deletions patches/stdlib/gen_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ name_to_pid(Name) ->
undefined ->
case global:safe_whereis_name(Name) of
undefined ->
exit(could_not_find_registerd_name);
exit(could_not_find_registered_name);
Pid ->
Pid
end;
Expand All @@ -797,7 +797,7 @@ format_status(Opt, StatusData) ->
end,
Header = lists:concat(["Status for generic server ", NameTag]),
Log = sys:get_debug(log, Debug, []),
Specfic =
Specific =
case erlang:function_exported(Mod, format_status, 2) of
true ->
case catch Mod:format_status(Opt, [PDict, State]) of
Expand All @@ -811,4 +811,4 @@ format_status(Opt, StatusData) ->
{data, [{"Status", SysState},
{"Parent", Parent},
{"Logged events", Log}]} |
Specfic].
Specific].
4 changes: 2 additions & 2 deletions src/gproc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ unregister_name(Key) ->
%% Match = {Key, Pid, Value}
%% @doc Perform a select operation on the process registry
%%
%% When Arg = Contination, resume a gproc:select/1 operation
%% When Arg = Continuation, resume a gproc:select/1 operation
%% (see {@link //stdlib/ets:select/1. ets:select/1}
%%
%% When Arg = {@type sel_pattern()}, this function executes a select operation,
Expand Down Expand Up @@ -1497,7 +1497,7 @@ select(Pat) ->
select(Context, Pat) ->
ets:select(?TAB, pattern(Pat, Context)).

%% @spec (Context::context(), Pat::sel_patten(), Limit::integer()) ->
%% @spec (Context::context(), Pat::sel_pattern(), Limit::integer()) ->
%% {[Match],Continuation} | '$end_of_table'
%% @doc Like {@link select/2} but returns Limit objects at a time.
%%
Expand Down

0 comments on commit 9f71a37

Please sign in to comment.