Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos again #196

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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