Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
5601-Fix-typos-in-lib-kernel.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5601-Fix-typos-in-lib-kernel.patch of Package erlang
From 796f11d4de1552abbcaf32052cc31f0ae5386222 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Sun, 19 Dec 2021 16:30:37 +0800 Subject: [PATCH] Fix typos in lib/kernel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com> --- lib/kernel/doc/src/config.xml | 2 +- lib/kernel/doc/src/erl_ddll.xml | 4 +- lib/kernel/doc/src/gen_sctp.xml | 2 +- lib/kernel/doc/src/gen_tcp.xml | 8 +- lib/kernel/doc/src/heart.xml | 2 +- lib/kernel/doc/src/inet.xml | 8 +- lib/kernel/doc/src/inet_res.xml | 2 +- lib/kernel/doc/src/logger.xml | 2 +- lib/kernel/doc/src/logger_chapter.xml | 4 +- lib/kernel/doc/src/logger_std_h.xml | 2 +- lib/kernel/doc/src/net.xml | 6 +- lib/kernel/doc/src/net_kernel.xml | 2 +- lib/kernel/doc/src/notes.xml | 18 ++-- lib/kernel/doc/src/os.xml | 2 +- lib/kernel/doc/src/rpc.xml | 4 +- lib/kernel/doc/src/seq_trace.xml | 2 +- lib/kernel/doc/src/socket.xml | 26 ++--- lib/kernel/doc/src/socket_usage.xml | 6 +- .../erl_uds_dist/src/erl_uds_dist.erl | 6 +- .../gen_tcp_dist/src/gen_tcp_dist.erl | 8 +- lib/kernel/examples/uds_dist/c_src/uds_drv.c | 2 +- .../examples/uds_dist/src/uds_server.erl | 2 +- lib/kernel/include/inet_sctp.hrl | 2 +- lib/kernel/src/application_controller.erl | 6 +- lib/kernel/src/code_server.erl | 2 +- lib/kernel/src/disk_log.erl | 4 +- lib/kernel/src/disk_log.hrl | 2 +- lib/kernel/src/dist_ac.erl | 6 +- lib/kernel/src/dist_util.erl | 4 +- lib/kernel/src/erl_boot_server.erl | 4 +- lib/kernel/src/erpc.erl | 2 +- lib/kernel/src/file_io_server.erl | 2 +- lib/kernel/src/gen_tcp_socket.erl | 2 +- lib/kernel/src/gen_udp_socket.erl | 6 +- lib/kernel/src/global_group.erl | 10 +- lib/kernel/src/heart.erl | 2 +- lib/kernel/src/inet.erl | 2 +- lib/kernel/src/inet_config.erl | 2 +- lib/kernel/src/inet_db.erl | 10 +- lib/kernel/src/inet_dns.hrl | 6 +- lib/kernel/src/inet_res.erl | 2 +- lib/kernel/src/inet_res.hrl | 2 +- lib/kernel/src/logger.erl | 4 +- lib/kernel/src/logger_h_common.erl | 2 +- lib/kernel/src/net_kernel.erl | 2 +- lib/kernel/src/ram_file.erl | 4 +- lib/kernel/src/rpc.erl | 6 +- lib/kernel/src/socket.erl | 12 +-- lib/kernel/test/application_SUITE.erl | 8 +- lib/kernel/test/code_SUITE.erl | 4 +- lib/kernel/test/disk_log_SUITE.erl | 2 +- lib/kernel/test/erl_distribution_SUITE.erl | 8 +- lib/kernel/test/erl_distribution_wb_SUITE.erl | 2 +- lib/kernel/test/erpc_SUITE_data/fwd_node.c | 2 +- lib/kernel/test/error_logger_SUITE.erl | 2 +- lib/kernel/test/file_SUITE.erl | 8 +- lib/kernel/test/file_SUITE_data/realmen.html | 6 +- lib/kernel/test/gen_tcp_api_SUITE.erl | 12 +-- lib/kernel/test/gen_tcp_misc_SUITE.erl | 38 +++---- lib/kernel/test/gen_udp_SUITE.erl | 6 +- lib/kernel/test/global_SUITE.erl | 8 +- lib/kernel/test/heart_SUITE.erl | 2 +- lib/kernel/test/inet_SUITE.erl | 16 +-- lib/kernel/test/inet_res_SUITE.erl | 4 +- .../test/kernel_test_global_sys_monitor.erl | 6 +- lib/kernel/test/kernel_test_lib.erl | 16 +-- lib/kernel/test/logger_SUITE.erl | 2 +- lib/kernel/test/logger_disk_log_h_SUITE.erl | 2 +- lib/kernel/test/logger_std_h_SUITE.erl | 6 +- lib/kernel/test/prim_file_SUITE.erl | 8 +- .../test/prim_file_SUITE_data/realmen.html | 10 +- .../test/ram_file_SUITE_data/realmen.html | 10 +- lib/kernel/test/rpc_SUITE.erl | 8 +- lib/kernel/test/socket_SUITE.erl | 98 +++++++++---------- lib/kernel/test/socket_test_evaluator.erl | 6 +- .../test/socket_test_ttest_tcp_server.erl | 4 +- .../test/socket_test_ttest_tcp_socket.erl | 2 +- 77 files changed, 267 insertions(+), 267 deletions(-) diff --git a/lib/kernel/doc/src/logger.xml b/lib/kernel/doc/src/logger.xml index 45ee802cfc..647c970b10 100644 --- a/lib/kernel/doc/src/logger.xml +++ b/lib/kernel/doc/src/logger.xml @@ -480,7 +480,7 @@ logger:log(warning, #{ what => roof, cause => Cause }). <p>The message and metadata can either be given directly in the arguments, or returned from a fun. Passing a fun instead of the message/metadata directly is useful in scenarios when the message/metadata is very expensive to compute. - This is because the fun is only evaluted when the message/metadata is + This is because the fun is only evaluated when the message/metadata is actually needed, which may be not at all if the log event is not to be logged. Examples:</p> <code> diff --git a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl index b017667285..e4ef56b606 100644 --- a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl +++ b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl @@ -25,7 +25,7 @@ %% This is an example of how to plug in an alternative distribution %% protocol using distribution controller processes. Erlang %% distribution can use whatever underlying protocols as long as the -%% implementation reliably delivers data chuncks to the receiving +%% implementation reliably delivers data chunks to the receiving %% Erlang node in the order they were sent by the sending node. %% %% This example uses stream-oriented Unix Domain Sockets (of the @@ -74,7 +74,7 @@ %% If tracing is wanted, uncomment the dist_trace macro in dist_util.hrl %% to enable all the calls to trace below, or copy the trace macro here. %% -%% Tracing will freeze the initial boot when a -name or -sname paramater +%% Tracing will freeze the initial boot when a -name or -sname parameter %% is passed to start directly distributed nodes. To make it work, %% launch non-distributed nodes first (without -name and -sname) then %% call net_kernel:start/1 to enable the distribution in a second stage. @@ -417,7 +417,7 @@ accept_loop(Kernel, ListeningSocket) -> %% The caller of accept_supervisor is a representative for net_kernel and %% is identified as Kernel below. %% -%% AcceptPid is the process identifer created by accept/1. +%% AcceptPid is the process identifier created by accept/1. %% %% DistCtrl is the identifier of the distribution controller process in %% charge of the connection, as created by the accept_loop process above. diff --git a/lib/kernel/src/erpc.erl b/lib/kernel/src/erpc.erl index d591fc7025..c93b0f7ca8 100644 --- a/lib/kernel/src/erpc.erl +++ b/lib/kernel/src/erpc.erl @@ -590,7 +590,7 @@ mcall_send_requests(Tag, Ns, M, F, A, Tmo) -> mcall_send_requests(_Tag, [], M, F, A, RIDs, DL, local_call, NRs) -> %% Timeout infinity and call on local node wanted; - %% excecute local call in this process... + %% execute local call in this process... LRes = mcall_local_call(M, F, A), {ok, RIDs, #{local_call => LRes}, NRs, DL}; mcall_send_requests(_Tag, [], _M, _F, _A, RIDs, DL, _LC, NRs) -> diff --git a/lib/kernel/src/inet_db.erl b/lib/kernel/src/inet_db.erl index 01912fdb57..c704a1dc1f 100644 --- a/lib/kernel/src/inet_db.erl +++ b/lib/kernel/src/inet_db.erl @@ -1728,7 +1728,7 @@ lookup_cache_data(LcDomain, Type) -> <- match_rr(dns_rr_match(LcDomain, in, Type))]. %% We are simultaneously updating the table from all clients -%% and the server, so we might get duplicate recource records +%% and the server, so we might get duplicate resource records %% in the table, i.e identical domain, class, type and data. %% We embrace that and eliminate duplicates here. %% @@ -1960,7 +1960,7 @@ delete_oldest(CacheDb, TM, N) -> %% many duplicate times, which is not unlikely %% given the second resolution. Therefore it is %% possible that gb_trees and storing the number - %% of occurences for a cnt time might be needed, + %% of occurrences for a cnt time might be needed, %% so insertion gets more complicated and slower, %% and we need our own concept of set size. %% diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl index 0d62ae761b..d3c425e8af 100644 --- a/lib/kernel/src/logger.erl +++ b/lib/kernel/src/logger.erl @@ -994,7 +994,7 @@ get_primary_metadata() -> {ok, Meta} -> throw({logger_metadata, Meta}); undefined -> - %% This case is here to keep bug compatability. Can be removed in OTP 25. + %% This case is here to keep bug compatibility. Can be removed in OTP 25. case application:get_env(kernel,logger_default_metadata,#{}) of Meta when is_map(Meta) -> Meta; -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor