Skip to content

Commit

Permalink
Fix typos and improve language
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 28, 2024
1 parent 64fcd87 commit 689667b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion erts/emulator/beam/beam_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @description Basic type representation for BEAM instruction operands.
* @file beam_types.h
*
* While the compiler is good eliminating redundant type tests and simplifying
* While the compiler is good at eliminating redundant type tests and simplifying
* instructions, we're limited by the available instructions and it's not
* always worthwhile to add new variants.
*
Expand Down
2 changes: 1 addition & 1 deletion erts/emulator/test/trace_sessions.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ group_map() ->
%%legacy_pre_session => [pre_session],
%%legacy_post_session => [post_session],
legacy_pre_post => [pre_session, post_session],
%%dynamic_sesssion => [dynamic_session]
%%dynamic_session => [dynamic_session]
dynamic_pre_post => [pre_session, post_session, dynamic_session]
}.

Expand Down
2 changes: 1 addition & 1 deletion erts/test/otp_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ call_to_size_1(Config) when is_list(Config) ->
not_recommended_calls(Config, Apps, {erlang,size,1}).

call_to_now_0(Config) when is_list(Config) ->
%% Forbid the use of erlang:now/1 in all applications except et.
%% Forbid the use of erlang:now/0 in all applications except et.
Apps = all_otp_applications(Config) -- [et],
not_recommended_calls(Config, Apps, {erlang,now,0}).

Expand Down
2 changes: 1 addition & 1 deletion lib/compiler/internal_doc/cerl-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Thus, after inlining the function `t/0` will look like this:
V.

The problem here is that the inliner assumed that the bindings from
the first and second call to `cer_clauses:match/3` would be the same.
the first and second call to `cerl_clauses:match/3` would be the same.
It used the empty bindings from the first call for the body.

The correct way would be to add the bindings from the second call:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%% Description : A test inspired by a post of Mkcael Remond to the
%% Erlang mailing list suggesting thst Dialyzer should
%% be reporting sends to records rather than to pids.
%% Dialyzer v1.3.0 indeed reports one of the dicrepancies
%% Dialyzer v1.3.0 indeed reports one of the discrepancies
%% (the one with the 4-tuple) but not the one where the
%% message is sent to a pair which is a record.
%% This should be fixed.
Expand Down
2 changes: 1 addition & 1 deletion lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ create_char_tab(_Min,[],_V) ->
create_char_tab(Min,L,V) ->
[false|create_char_tab(Min+1,L,V)].

%% This very inefficient and should be moved to compiletime
%% This is very inefficient and should be moved to compile time
charbits(NumOfChars,aligned) ->
case charbits(NumOfChars) of
1 -> 1;
Expand Down
2 changes: 1 addition & 1 deletion lib/stdlib/uc_spec/README-UPDATE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version in lib/stdlib/uc_spec/gen_unicode_mod.escript
4. Read the release notes by visiting https://www.unicode.org/versions/latest/
and assess if additional changes are necessary in the Erlang code.

5. Replace all ocurrences of previous version of Unicode with the new one in
5. Replace all occurrences of the previous version of Unicode with the new one in
this very same file (lib/stdlib/uc_spec/README-UPDATE.txt).
Remember to update these instructions if a new file is added or any other change
is required for future version updates.
Expand Down
10 changes: 5 additions & 5 deletions lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ init_per_testcase(TestCase,Config) ->
end_per_testcase(_Func,_Config) ->
ok.

%% ID Constranints. Very naive test of identity constraint
%% ID Constraints. Very naive test of identity constraint
'Sun-idc001.nogen'(Config) when is_list(Config) ->
STResList0 = [],

Expand All @@ -88,7 +88,7 @@ end_per_testcase(_Func,_Config) ->

xmerl_xsd_lib:compare_test_results(Config,STResList1,ITResList3).

%% ID Constranints. Reference to an undeclared key
%% ID Constraints. Reference to an undeclared key
'Sun-idc002.e'(Config) when is_list(Config) ->
STResList0 = [],

Expand All @@ -98,7 +98,7 @@ end_per_testcase(_Func,_Config) ->

xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).

%% ID Constranints. Reference to an undeclared key in an undeclared namespace
%% ID Constraints. Reference to an undeclared key in an undeclared namespace
'Sun-idc002b.e'(Config) when is_list(Config) ->
STResList0 = [],

Expand All @@ -108,7 +108,7 @@ end_per_testcase(_Func,_Config) ->

xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).

%% ID Constranints. Reference to non-key constraint.
%% ID Constraints. Reference to non-key constraint.
'Sun-idc003.e'(Config) when is_list(Config) ->
STResList0 = [],

Expand All @@ -118,7 +118,7 @@ end_per_testcase(_Func,_Config) ->

xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).

%% ID Constranints.
%% ID Constraints.
'Sun-idc004.nogen'(Config) when is_list(Config) ->
STResList0 = [],

Expand Down

0 comments on commit 689667b

Please sign in to comment.