diff options
Diffstat (limited to 'lib')
102 files changed, 137 insertions, 137 deletions
| diff --git a/lib/asn1/examples/recordnames.txt b/lib/asn1/examples/recordnames.txt index 78e30ab510..9b890b4aa7 100644 --- a/lib/asn1/examples/recordnames.txt +++ b/lib/asn1/examples/recordnames.txt @@ -1,6 +1,6 @@  For each ASN1 types SET and SEQUENCE a record is generated in the .hrl  file with the same name as the corresponding type. -A decoded value is also returned as a record with the apropriate name. +A decoded value is also returned as a record with the appropriate name.  An internally defined type as the type in component 'a' in the  following example will result in a record with name 'Seq_a': diff --git a/lib/dialyzer/RELEASE_NOTES b/lib/dialyzer/RELEASE_NOTES index 2457faa07a..299cc8642f 100644 --- a/lib/dialyzer/RELEASE_NOTES +++ b/lib/dialyzer/RELEASE_NOTES @@ -181,7 +181,7 @@ Version 1.8.0 (in Erlang/OTP R12B-2)   - Dialyzer has a new warning option -Wunmatched_returns which warns for     function calls that ignore the return value.     This catches many common programming errors (e.g. calling file:close/1 -   and not checking for the absense of errors), interface discrepancies +   and not checking for the absence of errors), interface discrepancies     (e.g. a function returning multiple values when in reality the function     is void and only called for its side-effects), calling the wrong function     (e.g. io_lib:format/1 instead of io:format/1), and even possible diff --git a/lib/dialyzer/src/dialyzer_callgraph.erl b/lib/dialyzer/src/dialyzer_callgraph.erl index bb02bc8c0d..6387f3d1e4 100644 --- a/lib/dialyzer/src/dialyzer_callgraph.erl +++ b/lib/dialyzer/src/dialyzer_callgraph.erl @@ -365,7 +365,7 @@ ets_lookup_set(Key, Table) ->  %% The core tree must be labeled as by cerl_trees:label/1 (or /2).  %% The set of labels in the tree must be disjoint from the set of -%% labels already occuring in the callgraph. +%% labels already occurring in the callgraph.  -spec scan_core_tree(cerl:c_module(), callgraph()) ->          {[mfa_or_funlbl()], [callgraph_edge()]}. diff --git a/lib/dialyzer/src/dialyzer_dataflow.erl b/lib/dialyzer/src/dialyzer_dataflow.erl index f706ebfb02..dc2238e63a 100644 --- a/lib/dialyzer/src/dialyzer_dataflow.erl +++ b/lib/dialyzer/src/dialyzer_dataflow.erl @@ -1363,7 +1363,7 @@ do_clause(C, Arg, ArgType0, OrigArgType, Map, State, Warns) ->  		{{Tag, PatTypes}, false};  	      false ->  		%% Try to find out if this is a default clause in a list -		%% comprehension and supress this. A real Hack(tm) +		%% comprehension and suppress this. A real Hack(tm)  		Force0 =  		  case is_compiler_generated(cerl:get_ann(C)) of  		    true -> diff --git a/lib/dialyzer/test/opaque_SUITE_data/src/recrec/dialyzer_dataflow.erl b/lib/dialyzer/test/opaque_SUITE_data/src/recrec/dialyzer_dataflow.erl index 6a5b593db0..53b08cc5c9 100644 --- a/lib/dialyzer/test/opaque_SUITE_data/src/recrec/dialyzer_dataflow.erl +++ b/lib/dialyzer/test/opaque_SUITE_data/src/recrec/dialyzer_dataflow.erl @@ -1340,7 +1340,7 @@ do_clause(C, Arg, ArgType0, OrigArgType, Map, State) ->  		{{Tag, PatTypes}, false};  	      false ->  		%% Try to find out if this is a default clause in a list -		%% comprehension and supress this. A real Hack(tm) +		%% comprehension and suppress this. A real Hack(tm)  		Force0 =  		  case is_compiler_generated(cerl:get_ann(C)) of  		    true -> diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/beam_disasm.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/beam_disasm.erl index 0108f91b7f..cf2cbe8e2b 100644 --- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/beam_disasm.erl +++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/beam_disasm.erl @@ -565,7 +565,7 @@ resolve_inst({make_fun2,Args},_,_,Lbls,Lambdas) ->      [OldIndex] = resolve_args(Args),      {value,{OldIndex,{F,A,_Lbl,_Index,NumFree,OldUniq}}} =  	lists:keysearch(OldIndex, 1, Lambdas), -    [{_,{M,_,_}}|_] = Lbls,			% Slighly kludgy. +    [{_,{M,_,_}}|_] = Lbls,			% Slightly kludgy.      {make_fun2,{M,F,A},OldIndex,OldUniq,NumFree};  resolve_inst(Instr, Imports, Str, Lbls, _Lambdas) ->      resolve_inst(Instr, Imports, Str, Lbls). diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/cerl_inline.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/cerl_inline.erl index 95d2076ccf..8fca202b8c 100644 --- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/cerl_inline.erl +++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/cerl_inline.erl @@ -951,7 +951,7 @@ i_letrec(Es, B, Xs, Ctxt, Ren, Env, S) ->      %% Finally, we create new letrec-bindings for any and all      %% residualised definitions. All referenced functions should have -    %% been visited; the call to `visit' below is expected to retreive a +    %% been visited; the call to `visit' below is expected to retrieve a      %% cached expression.      Rs1 = keep_referenced(Rs, S4),      {Es1, S5} = mapfoldl(fun (R, S) -> @@ -997,7 +997,7 @@ i_apply(E, Ctxt, Ren, Env, S) ->      %% location could be recycled after the flag has been tested, but      %% there is no real advantage to that, because in practice, only      %% 4-5% of all created store locations will ever be reused, while -    %% there will be a noticable overhead for managing the free list.) +    %% there will be a noticeable overhead for managing the free list.)      case st__get_app_inlined(L, S3) of          true ->              %% The application was inlined, so we have the final @@ -2007,7 +2007,7 @@ residualize_operand(Opnd, E, S) ->      case st__get_opnd_effect(Opnd#opnd.loc, S) of          true ->              %% The operand has not been visited, so we do that now, but -            %% in `effect' context. (Waddell's algoritm does some stuff +            %% in `effect' context. (Waddell's algorithm does some stuff              %% here to account specially for the operand size, which              %% appears unnecessary.)              {E1, S1} = i(Opnd#opnd.expr, effect, Opnd#opnd.ren, diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/rec_env.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/rec_env.erl index 01c2512397..76ae871aee 100644 --- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/rec_env.erl +++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/rec_env.erl @@ -469,7 +469,7 @@ get(Key, Env) ->  -define(MINIMUM_RANGE, 1000).  -define(START_RANGE_FACTOR, 50).  -define(MAX_RETRIES, 2).      % retries before enlarging range --define(ENLARGE_FACTOR, 10).  % range enlargment factor +-define(ENLARGE_FACTOR, 10).  % range enlargement factor  -ifdef(DEBUG).  %% If you want to use these process dictionary counters, make sure to diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/sys_pre_expand.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/sys_pre_expand.erl index 49a95a95e5..69139cd568 100644 --- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/sys_pre_expand.erl +++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/sys_pre_expand.erl @@ -316,7 +316,7 @@ record_test_in_guard(Line, Term, Name, Vs, St) ->      %%            code bloat.)      %%        (4) Xref may be run on the abstract code, so the name in the      %%            abstract code must be erlang:is_record/3. -    %%        (5) To achive both (3) and (4) at the same time, set the name +    %%        (5) To achieve both (3) and (4) at the same time, set the name      %%            here to erlang:is_record/3, but mark it as compiler-generated.      %%            The v3_core pass will change the name to erlang:internal_is_record/3.      Fs = record_fields(Name, St), diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/v3_codegen.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/v3_codegen.erl index 33a322b466..acb49b5faf 100644 --- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/v3_codegen.erl +++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/v3_codegen.erl @@ -1667,7 +1667,7 @@ bs_function({function,Name,Arity,CLabel,Asm0}=Func) ->  %%%  %%% Pass 1: Found out which bs_restore's that are needed. For now we assume -%%% that a bs_restore is needed unless it is directly preceeded by a bs_save. +%%% that a bs_restore is needed unless it is directly preceded by a bs_save.  %%%  bs_needed([{bs_save,Name},{bs_restore,Name}|T], N, _BsUsed, Dict) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct.erl index ed38b2f915..3829479a94 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct.erl @@ -520,7 +520,7 @@ save_automatic_tagged_types([_M|Ms]) ->  %% remove_in_set_imports/3 :  %% input: list with tuples of each module's imports and module name  %% respectively. -%% output: one list with same format but each occured import from a +%% output: one list with same format but each occurred import from a  %% module in the input set (IMNameL) is removed.  remove_in_set_imports([{{imports,ImpL},_ModName}|Rest],InputMNameL,Acc) ->      NewImpL = remove_in_set_imports1(ImpL,InputMNameL,[]), @@ -1628,7 +1628,7 @@ tlv_tag1(<<1:1,PartialTag:7,Buffer/binary>>,Acc) ->      tlv_tag1(Buffer,(Acc bsl 7) bor PartialTag).  %% reads the content from the configuration file and returns the -%% selected part choosen by InfoType. Assumes that the config file +%% selected part chosen by InfoType. Assumes that the config file  %% content is an Erlang term.  read_config_file(ModuleName,InfoType) when atom(InfoType) ->      CfgList = read_config_file(ModuleName), diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_check.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_check.erl index c26b8f851b..a4f39bde74 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_check.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_check.erl @@ -4028,7 +4028,7 @@ check_sequence(S,Type,Comps)  ->  	    {CRelInf,NewComps2} = componentrelation_leadingattr(S,NewComps),  %	    io:format("CRelInf: ~p~n",[CRelInf]),  %	    io:format("NewComps2: ~p~n",[NewComps2]), -	    %% CompListWithTblInf has got a lot unecessary info about +	    %% CompListWithTblInf has got a lot unnecessary info about  	    %% the involved class removed, as the class of the object  	    %% set.  	    CompListWithTblInf = get_tableconstraint_info(S,Type,NewComps2), @@ -4686,7 +4686,7 @@ any_component_relation(_,[],_,_,Acc) ->  %% evaluate_atpath/4 finds out whether the at notation refers to the  %% search level. The list of referenced names in the AtNot list shall  %% begin with a name that exists on the level it refers to. If the -%% found AtPath is refering to the same sub-branch as the simple table +%% found AtPath is referring to the same sub-branch as the simple table  %% has, then there shall not be any leading attribute info on this  %% level.  evaluate_atpath(_,[],Cnames,{innermost,AtPath=[Ref|_Refs]}) -> @@ -4857,7 +4857,7 @@ innertype_comprel1(S,T = #type{def=Def,constraint=Cons,tablecinf=TCI},Path) ->  	case Cons of  	    [{componentrelation,{_,_,ObjectSet},AtList}|_Rest] ->  		%% This AtList must have an "outermost" at sign to be -		%% relevent here. +		%% relevant here.  		[{_,AL=[#'Externalvaluereference'{value=_Attr}|_R1]}|_R2]  		    = AtList,  %%		#'ObjectClassFieldType'{class=ClassDef} = Def, diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber.erl index 392896932a..0b5ea85681 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber.erl @@ -1259,7 +1259,7 @@ gen_dec_line(Erules,TopType,Cname,CTags,Type,OptOrMand,DecObjInf)  ->  	end,      case DecObjInf of  	{Cname,ObjSet} -> % this must be the component were an object is -	    %% choosen from the object set according to the table +	    %% chosen from the object set according to the table  	    %% constraint.  	    {[{ObjSet,Cname,asn1ct_gen:mk_var(asn1ct_name:curr(term))}],  	     PostpDec}; diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber_bin_v2.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber_bin_v2.erl index 9725da4d11..fb9ffb13db 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber_bin_v2.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_constructed_ber_bin_v2.erl @@ -1096,7 +1096,7 @@ gen_dec_line(Erules,TopType,Cname,CTags,Type,OptOrMand,DecObjInf)  ->  	end,      case DecObjInf of  	{Cname,ObjSet} -> % this must be the component were an object is -	    %% choosen from the object set according to the table +	    %% chosen from the object set according to the table  	    %% constraint.  	    {[{ObjSet,Cname,asn1ct_gen:mk_var(asn1ct_name:curr(term))}],  	     PostpDec}; diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_parser2.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_parser2.erl index 5f8c7a0de8..32676b3448 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_parser2.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1ct_parser2.erl @@ -2721,7 +2721,7 @@ prioritize_error(ErrList) ->  				end,  				NewErrList),  	    case SplitErrs of -		{[],UndefPosErrs} -> % if no error with Positon exists +		{[],UndefPosErrs} -> % if no error with Position exists  		    lists:last(UndefPosErrs);  		{IntPosErrs,_} ->  		    IntPosReasons = lists:map(fun(X)->element(2,X) end,IntPosErrs), diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin.erl index 5854f8edbd..8f4d189b5a 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin.erl @@ -1036,7 +1036,7 @@ decode_real2(Buffer0, Form, Len, RemBytes1) ->  %%  %% bitstring NamedBitList  %% Val can be  of: -%% - [identifiers] where only named identifers are set to one, +%% - [identifiers] where only named identifiers are set to one,  %%   the Constraint must then have some information of the  %%   bitlength.  %% - [list of ones and zeroes] all bits diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin_v2.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin_v2.erl index 0457425445..6e12d36579 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin_v2.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_ber_bin_v2.erl @@ -1034,7 +1034,7 @@ decode_real_notag(_Buffer, _Form) ->  %%  %% bitstring NamedBitList  %% Val can be  of: -%% - [identifiers] where only named identifers are set to one, +%% - [identifiers] where only named identifiers are set to one,  %%   the Constraint must then have some information of the  %%   bitlength.  %% - [list of ones and zeroes] all bits diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl index b163aa24ac..97c92a2dd1 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl @@ -823,7 +823,7 @@ decode_enumerated(Buffer,C,NamedNumberTup) when tuple(NamedNumberTup) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% bitstring NamedBitList  %% Val can be  of: -%% - [identifiers] where only named identifers are set to one, +%% - [identifiers] where only named identifiers are set to one,  %%   the Constraint must then have some information of the  %%   bitlength.  %% - [list of ones and zeroes] all bits diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin.erl index 15986cc217..aa2cf5ba88 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin.erl @@ -1000,7 +1000,7 @@ decode_enumerated(Buffer,C,NamedNumberTup) when tuple(NamedNumberTup) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% bitstring NamedBitList  %% Val can be  of: -%% - [identifiers] where only named identifers are set to one, +%% - [identifiers] where only named identifiers are set to one,  %%   the Constraint must then have some information of the  %%   bitlength.  %% - [list of ones and zeroes] all bits diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin_rt2ct.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin_rt2ct.erl index 43d9bef54e..24f7949c21 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin_rt2ct.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per_bin_rt2ct.erl @@ -1059,7 +1059,7 @@ decode_enumerated(Buffer,C,NamedNumberTup) when tuple(NamedNumberTup) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% bitstring NamedBitList  %% Val can be  of: -%% - [identifiers] where only named identifers are set to one, +%% - [identifiers] where only named identifiers are set to one,  %%   the Constraint must then have some information of the  %%   bitlength.  %% - [list of ones and zeroes] all bits diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/ftp.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/ftp.erl index 4f0ca99cce..8be5b0cd6e 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/ftp.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/ftp.erl @@ -108,7 +108,7 @@ user(Pid, User, Pass) ->    gen_server:call(Pid, {user, User, Pass}, infinity).  %% user(Pid, User, Pass,Acc) -%% Purpose:  Login whith a supplied account name +%% Purpose:  Login with a supplied account name  %% Args:     Pid = pid(), User = Pass = Acc = string()  %% Returns:  ok | {error, euser} | {error, econn} | {error, eacct}  user(Pid, User, Pass,Acc) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/http.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/http.erl index cf05431f5a..039960dac7 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/http.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/http.erl @@ -24,7 +24,7 @@  %%%      - RFC 3310 Authentication and Key Agreement (AKA) (not yet!)  %%%      - HTTP/1.1 Specification Errata found at  %%%        http://world.std.com/~lawrence/http_errata.html -%%%    Additionaly follows the following recommendations: +%%%    Additionally follows the following recommendations:  %%%      - RFC 3143 Known HTTP Proxy/Caching Problems (not yet!)  %%%      - draft-nottingham-hdrreg-http-00.txt (not yet!)  %%% diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/http_lib.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/http_lib.erl index ebefcd7ad7..28ea42c685 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/http_lib.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/http_lib.erl @@ -697,7 +697,7 @@ lookup(Key,Val) ->  %%% This code is for parsing trailer headers in chunked messages.  %%% Will be deprecated whenever I have found an alternative working solution!  %%% Note: -%%% - The header names are returned slighly different from what the what +%%% - The header names are returned slightly different from what the what  %%%   inet_drv returns  read_headers_old(Scheme,Socket,Timeout) ->      read_headers_old(<<>>,Scheme,Socket,Timeout,[],[]). diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpc_manager.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpc_manager.erl index 45beaa84f7..d2653184aa 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpc_manager.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpc_manager.erl @@ -95,7 +95,7 @@ abort_session(Addr,Sid,Msg) ->  next_request(Addr,Sid) ->      gen_server:call(?HMACALL,{next_request,Addr,Sid},infinity). -%%% Session handler has succeded to set up a new session, now register +%%% Session handler has succeed to set up a new session, now register  %%% the socket  register_socket(Addr,Sid,Socket) ->      gen_server:cast(?HMACALL,{register_socket,Addr,Sid,Socket}). diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_manager.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_manager.erl index 85e06f43b6..3058ac3556 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_manager.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_manager.erl @@ -224,7 +224,7 @@ is_blocked(ServerRef) ->  %% -%% Module API. Theese functions are intended for use from modules only. +%% Module API. These functions are intended for use from modules only.  %%  config_lookup(Port, Query) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_parse.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_parse.erl index d7a698d65a..07f951d057 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_parse.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/httpd_parse.erl @@ -109,7 +109,7 @@ get_persistens(HTTPVersion,ParsedHeader,ConfigDB)->  		%%If it is version prio to 1.1 kill the conneciton  		[$H, $T, $T, $P, $\/, $1, $.,N] ->  		    case httpd_util:key1search(ParsedHeader,"connection","keep-alive")of -			%%if the connection isnt ordered to go down let it live +			%%if the connection isn't ordered to go down let it live  			%%The keep-alive value is the older http/1.1 might be older  			%%Clients that use it.  			"keep-alive" when N >= 49 -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/jnets_httpd.hrl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/jnets_httpd.hrl index 6b872d7c95..73edcf6b92 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/jnets_httpd.hrl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/jnets_httpd.hrl @@ -60,7 +60,7 @@  %	  request_line,        % string() Request Line  	  headers,             % #req_headers{} Parsed request headers  	  entity_body= <<>>,   % binary() Body of request -	  connection,          % boolean() true if persistant connection +	  connection,          % boolean() true if persistent connection  	  status_code,         % int() Status code  	  logging              % int() 0=No logging  	                       %       1=Only mod_log present diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_auth_mnesia.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_auth_mnesia.erl index e42494ff76..847d6e97c1 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_auth_mnesia.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_auth_mnesia.erl @@ -53,7 +53,7 @@ store_directory_data(Directory, DirData) ->  %% API  %% -%% Compability API +%% Compatibility API  store_user(UserName, Password, Port, Dir, AccessPassword) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_esi.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_esi.erl index 1203aeaa4c..a48f73274b 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_esi.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_esi.erl @@ -440,7 +440,7 @@ try_new_erl_scheme_method(Info,Env,Input,Mod,Func)->  %%---------------------------------------------------------------------- -%%The function recieves the data from the process that generates the page +%%The function receives the data from the process that generates the page  %%and send the data to the client through the mod_cgi:send function  %%---------------------------------------------------------------------- diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_htaccess.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_htaccess.erl index f600c65e92..d95c745b07 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_htaccess.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_htaccess.erl @@ -272,10 +272,10 @@ controlIfAllowed(AllowedNetworks,UserNetwork,IfAllowed,IfDenied)->      end. -%---------------------------------------------------------------------% -%The Denycontrol isn't neccessary to preform since the allow control  % -%override the deny control                                            % -%---------------------------------------------------------------------% +%--------------------------------------------------------------------% +%The Denycontrol isn't necessary to preform since the allow control  % +%override the deny control                                           % +%--------------------------------------------------------------------%  controlDenyAllow(DeniedNetworks,AllowedNetworks,UserNetwork)->      case AllowedNetworks of  	[{allow,all}]-> @@ -657,7 +657,7 @@ getData2(HtAccessFileNames,SplittedPath,Info)->  %----------------------------------------------------------------------  %HtAccessFilenames is a list the names the accesssfiles can have -%Path is the shortest match agains all alias and documentroot +%Path is the shortest match against all alias and documentroot  %rest of splitted path is a list of the parts of the path  %Info is the mod recod from the server  %---------------------------------------------------------------------- diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_range.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_range.erl index 4e6030d5e2..f2c45c4a3f 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_range.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_range.erl @@ -80,7 +80,7 @@ send_range_response(Path,Info,Ranges,FileInfo,LastModified)->  	    send_range_response(Path,Info,Start,Stop,FileInfo,LastModified)      end.  %%More than one range specified -%%Send a multipart reponse to the user +%%Send a multipart response to the user  %  %%An example of an multipart range response diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_responsecontrol.erl b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_responsecontrol.erl index 76168f3890..a997db6880 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_responsecontrol.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/inets/mod_responsecontrol.erl @@ -48,8 +48,8 @@ do(Info) ->  %%---------------------------------------------------------------------- -%%Control that the request header did not contians any limitations -%%wheather a response shall be createed or not +%%Control that the request header did not contains any limitations +%%whether a response shall be created or not  %%----------------------------------------------------------------------  do_responsecontrol(Info) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia.erl index 19b571ac47..cc72a9b6fe 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia.erl @@ -431,7 +431,7 @@ wrap_trans(State, Fun, Args, Retries, Mod, Kind) ->  %% read lock is only set on the first node  %% Nodes may either be a list of nodes or one node as an atom  %% Mnesia on all Nodes must be connected to each other, but -%% it is not neccessary that they are up and running. +%% it is not necessary that they are up and running.  lock(LockItem, LockKind) ->      case get(mnesia_activity_state) of diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_bup.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_bup.erl index fdbf3e4481..a85a08e4f8 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_bup.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_bup.erl @@ -775,7 +775,7 @@ restore_tables([Rec | Recs], Header, Schema, State = {local, LocalTabs, L}) ->  restore_tables([], _Header, _Schema, State) ->      State. -%% Creates all neccessary dat files and inserts +%% Creates all necessary dat files and inserts  %% the table definitions in the schema table  %%  %% Returns a list of local_tab tuples for all local tables diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_checkpoint.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_checkpoint.erl index 2b5c77b3ba..0403c7e978 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_checkpoint.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_checkpoint.erl @@ -332,7 +332,7 @@ really_retain(Name, Tab) ->  %%  %% {min, MinTabs}  %%   Minimize redundancy and only keep checkpoint info together with -%%   one replica, preferrably at the local node. If any node involved +%%   one replica, preferably at the local node. If any node involved  %%   the checkpoint goes down, the checkpoint is deactivated.  %%  %% {max, MaxTabs} @@ -345,7 +345,7 @@ really_retain(Name, Tab) ->  %% {ram_overrides_dump, Tabs}  %%   Only applicable for ram_copies. Bool controls which versions of  %%   the records that should be included in the checkpoint state. -%%   true means that the latest comitted records in ram (i.e. the +%%   true means that the latest committed records in ram (i.e. the  %%   records that the application accesses) should be included  %%   in the checkpoint. false means that the records dumped to  %%   dat-files (the records that will be loaded at startup) should diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_loader.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_loader.erl index 70fee1741e..07667d73f5 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_loader.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_loader.erl @@ -61,7 +61,7 @@ do_get_disc_copy2(Tab, Reason, Storage, Type) when Storage == disc_copies ->      Repair = mnesia_monitor:get_env(auto_repair),      Args = [{keypos, 2}, public, named_table, Type],      case Reason of -	{dumper, _} -> %% Resources allready allocated +	{dumper, _} -> %% Resources already allocated  	    ignore;  	_ ->  	    mnesia_monitor:mktab(Tab, Args), @@ -82,7 +82,7 @@ do_get_disc_copy2(Tab, Reason, Storage, Type) when Storage == disc_copies ->  do_get_disc_copy2(Tab, Reason, Storage, Type) when Storage == ram_copies ->      Args = [{keypos, 2}, public, named_table, Type],      case Reason of -	{dumper, _} -> %% Resources allready allocated +	{dumper, _} -> %% Resources already allocated  	    ignore;  	_ ->  	    mnesia_monitor:mktab(Tab, Args), diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_locker.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_locker.erl index 701aa8f598..accb631f2a 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_locker.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_locker.erl @@ -170,14 +170,14 @@ loop(State) ->  	    end;  	%% If test_set_sticky fails, we send this to all nodes -	%% after aquiring a real write lock on Oid +	%% after acquiring a real write lock on Oid  	{stick, {Tab, _}, N} ->  	    ?ets_insert(mnesia_sticky_locks, {Tab, N}),  	    loop(State);  	%% The caller which sends this message, must have first -	%% aquired a write lock on the entire table +	%% acquired a write lock on the entire table  	{unstick, Tab} ->  	    ?ets_delete(mnesia_sticky_locks, Tab),  	    loop(State); @@ -738,11 +738,11 @@ dirty_sticky_lock(Tab, Key, Nodes, Lock) ->  sticky_wlock_table(Tid, Store, Tab) ->      sticky_lock(Tid, Store, {Tab, ?ALL}, write). -%% aquire a wlock on Oid +%% acquire a wlock on Oid  %% We store a {Tabname, write, Tid} in all locktables  %% on all nodes containing a copy of Tabname  %% We also store an item {{locks, Tab, Key}, write} in the -%% local store when we have aquired the lock. +%% local store when we have acquired the lock.  %%  wlock(Tid, Store, Oid) ->      {Tab, Key} = Oid, diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_monitor.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_monitor.erl index d1ff09ce29..7fd5f70e23 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_monitor.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_monitor.erl @@ -144,7 +144,7 @@ check_protocol([{Node, {accept, Mon, _Version, Protocol}} | Tail], Protocols) ->  	    end,  	    [node(Mon) | check_protocol(Tail, Protocols)];  	false  -> -	    unlink(Mon), % Get rid of unneccessary link +	    unlink(Mon), % Get rid of unnecessary link  	    check_protocol(Tail, Protocols)      end;  check_protocol([{Node, {reject, _Mon, Version, Protocol}} | Tail], Protocols) -> diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_schema.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_schema.erl index ec07e1c1ab..fbd1356a7f 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_schema.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_schema.erl @@ -1265,7 +1265,7 @@ make_change_table_copy_type(Tab, Node, ToS) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% change index functions .... -%% Pos is allready added by 1 in both of these functions +%% Pos is already added by 1 in both of these functions  add_table_index(Tab, Pos) ->      schema_transaction(fun() -> do_add_table_index(Tab, Pos) end). diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_tm.erl b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_tm.erl index 3e08354b5a..09e310530d 100644 --- a/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_tm.erl +++ b/lib/dialyzer/test/r9c_SUITE_data/src/mnesia/mnesia_tm.erl @@ -1615,7 +1615,7 @@ commit_participant(Coord, Tid, Bin, C0, DiscNs, _RamNs) ->  do_abort(Tid, Bin) when binary(Bin) ->      %% Possible optimization: -    %% If we want we could pass arround a flag +    %% If we want we could pass around a flag      %% that tells us whether the binary contains      %% schema ops or not. Only if the binary      %% contains schema ops there are meningful diff --git a/lib/dialyzer/test/small_SUITE_data/src/tuple1.erl b/lib/dialyzer/test/small_SUITE_data/src/tuple1.erl index d608275efe..88ac486044 100644 --- a/lib/dialyzer/test/small_SUITE_data/src/tuple1.erl +++ b/lib/dialyzer/test/small_SUITE_data/src/tuple1.erl @@ -2,7 +2,7 @@  %%% File    : tuple1.erl  %%% Author  : Tobias Lindahl <[email protected]>  %%% Description : Exposed two bugs in the analysis; -%%%               one supressed warning and one crash. +%%%               one suppressed warning and one crash.  %%%  %%% Created : 13 Nov 2006 by Tobias Lindahl <[email protected]>  %%%------------------------------------------------------------------- diff --git a/lib/diameter/include/diameter_gen.hrl b/lib/diameter/include/diameter_gen.hrl index 611ad796a9..5361510d69 100644 --- a/lib/diameter/include/diameter_gen.hrl +++ b/lib/diameter/include/diameter_gen.hrl @@ -424,7 +424,7 @@ d(true, _, Name, Avp, Acc) ->  %% ... or not. Failures here won't be visible since they're a "normal"  %% occurrence if the peer sends a faulty AVP that we need to respond -%% sensibly to. Log the occurence for traceability, but the peer will +%% sensibly to. Log the occurrence for traceability, but the peer will  %% also receive info in the resulting answer message.  d(false, Reason, Name, Avp, {Avps, Acc}) ->      Stack = diameter_lib:get_stacktrace(), diff --git a/lib/diameter/src/base/diameter_callback.erl b/lib/diameter/src/base/diameter_callback.erl index f479cb6612..0e445492b8 100644 --- a/lib/diameter/src/base/diameter_callback.erl +++ b/lib/diameter/src/base/diameter_callback.erl @@ -35,7 +35,7 @@  %% in a callback applied to the atom-valued callback name and argument  %% list. For all callbacks not to this module, the 'extra' field is a  %% list of additional arguments, following arguments supplied by -%% diameter but preceeding those of the diameter:evaluable() being +%% diameter but preceding those of the diameter:evaluable() being  %% applied.  %%  %% For example, the following config to diameter:start_service/2, in diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl index fdbbd412a1..1b48c0431f 100644 --- a/lib/diameter/src/base/diameter_config.erl +++ b/lib/diameter/src/base/diameter_config.erl @@ -865,7 +865,7 @@ init_cb(List) ->                     V <- [proplists:get_value(F, List, D)]],      #diameter_callback{} = list_to_tuple([diameter_callback | Values]). -%% Retreive and validate. +%% Retrieve and validate.  get_opt(Key, List, Def, Other) ->      init_opt(Key, get_opt(Key, List, Def), [Def|Other]). diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl index 996e75a8d3..4b394a2dbe 100644 --- a/lib/diameter/src/base/diameter_peer_fsm.erl +++ b/lib/diameter/src/base/diameter_peer_fsm.erl @@ -356,7 +356,7 @@ handle_info(T, #state{} = State) ->  %% Note that there's no guarantee that the service and transport  %% capabilities are good enough to build a CER/CEA that can be -%% succesfully encoded. It's not checked at diameter:add_transport/2 +%% successfully encoded. It's not checked at diameter:add_transport/2  %% since this can be called before creating the service.  %% terminate/2 diff --git a/lib/diameter/src/info/diameter_info.erl b/lib/diameter/src/info/diameter_info.erl index 59a3b94ee4..2a27600346 100644 --- a/lib/diameter/src/info/diameter_info.erl +++ b/lib/diameter/src/info/diameter_info.erl @@ -195,7 +195,7 @@ format(Tables, SFun, CFun)  %%%  %%% Description: Pretty-print records in a named tables as collected  %%%              from local and remote nodes. Each table listing is -%%%              preceeded by a banner. +%%%              preceded by a banner.  %%% ----------------------------------------------------------  format(Local, Remote, SFun) -> diff --git a/lib/diameter/src/transport/diameter_sctp.erl b/lib/diameter/src/transport/diameter_sctp.erl index f48e4347ee..ad9f4b0d80 100644 --- a/lib/diameter/src/transport/diameter_sctp.erl +++ b/lib/diameter/src/transport/diameter_sctp.erl @@ -402,7 +402,7 @@ handle_info(T, #transport{} = S) ->  handle_info(T, #listener{} = S) ->      {noreply, #listener{} = l(T,S)}. -%% Prior to the possiblity of setting pool_size on in transport +%% Prior to the possibility of setting pool_size on in transport  %% configuration, a new accepting transport was only started following  %% the death of a predecessor, so that there was only at most one  %% previously started transport process waiting for an association. diff --git a/lib/diameter/test/diameter_pool_SUITE.erl b/lib/diameter/test/diameter_pool_SUITE.erl index eadb354a1d..383fa0a031 100644 --- a/lib/diameter/test/diameter_pool_SUITE.erl +++ b/lib/diameter/test/diameter_pool_SUITE.erl @@ -115,7 +115,7 @@ connect(ClientProt, ServerProt) ->      %% 'up' events. (Although it's likely.)      sleep(),      {9,5} = count("server", LRef, accept), %% 5 connections + 4 accepting -    %% Ensure ther are still the expected number of accepting transports +    %% Ensure there are still the expected number of accepting transports      %% after stopping the client service.      ok = diameter:stop_service("client"),      sleep(), diff --git a/lib/edoc/src/edoc_tags.erl b/lib/edoc/src/edoc_tags.erl index 7e59f373b2..da078de0b9 100644 --- a/lib/edoc/src/edoc_tags.erl +++ b/lib/edoc/src/edoc_tags.erl @@ -227,7 +227,7 @@ filter_tags([#tag{name = N, line = L} = T | Ts], Tags, Where, Ts1) ->  filter_tags([], _, _, Ts) ->      lists:reverse(Ts). -%% Check occurrances of tags. +%% Check occurrences of tags.  check_tags(Ts, Allow, Single, Where) ->      check_tags(Ts, Allow, Single, Where, false, sets:new()). diff --git a/lib/eldap/test/README b/lib/eldap/test/README index ec774c1ae3..af1bf6a082 100644 --- a/lib/eldap/test/README +++ b/lib/eldap/test/README @@ -16,7 +16,7 @@ To start slapd:  This will however not work, since slapd is guarded by apparmor that checks that slapd does not access other than allowed files... -To make a local extension of alowed operations: +To make a local extension of allowed operations:      sudo emacs /etc/apparmor.d/local/usr.sbin.slapd  and, after the change (yes, at least on Ubuntu it is right to edit ../local/.. but run with another file): diff --git a/lib/erl_interface/src/README b/lib/erl_interface/src/README index feee2e48e8..7591615f78 100644 --- a/lib/erl_interface/src/README +++ b/lib/erl_interface/src/README @@ -11,7 +11,7 @@ Also, assertions are enabled, meaning that the code will be a  little bit slower.  In the final release, there will be two  alternative libraries shipped, with and without assertions. -If an assertion triggers, there will be a printout similiar to this +If an assertion triggers, there will be a printout similar to this  one:  	Assertion failed: ep != NULL in erl_eterm.c, line 694 diff --git a/lib/erl_interface/src/legacy/erl_marshal.c b/lib/erl_interface/src/legacy/erl_marshal.c index 2bdf5f2134..527ae0ef8f 100644 --- a/lib/erl_interface/src/legacy/erl_marshal.c +++ b/lib/erl_interface/src/legacy/erl_marshal.c @@ -1626,7 +1626,7 @@ static int cmp_refs(unsigned char **e1, unsigned char **e2)      if (cre1 != cre2)  	return cre1 < cre2 ? -1 : 1; -    /* ... and then finaly ids. */ +    /* ... and then finally ids. */      if (n1 != n2) {  	unsigned char zero[] = {0, 0, 0, 0};  	if (n1 > n2) @@ -1791,7 +1791,7 @@ static int cmp_exe2(unsigned char **e1, unsigned char **e2)          if      (port1.creation < port2.creation) return -1;          else if (port1.creation > port2.creation) return 1; -      /* ... and then finaly ids. */ +      /* ... and then finally ids. */          if      (port1.id < port2.id) return -1;          else if (port1.id > port2.id) return 1; diff --git a/lib/erl_interface/src/misc/ei_locking.c b/lib/erl_interface/src/misc/ei_locking.c index 85b2a5fd8b..a0e00b7871 100644 --- a/lib/erl_interface/src/misc/ei_locking.c +++ b/lib/erl_interface/src/misc/ei_locking.c @@ -76,8 +76,8 @@ ei_mutex_t *ei_mutex_create(void)    return l;  } -/*  - * Free a mutex and the structure asociated with it. +/* + * Free a mutex and the structure associated with it.   *   * This function attempts to obtain the mutex before releasing it;   * If nblock == 1 and the mutex was unavailable, the function will diff --git a/lib/erl_interface/test/ei_decode_SUITE.erl b/lib/erl_interface/test/ei_decode_SUITE.erl index 1495a0d5d9..10e90685c8 100644 --- a/lib/erl_interface/test/ei_decode_SUITE.erl +++ b/lib/erl_interface/test/ei_decode_SUITE.erl @@ -99,7 +99,7 @@ test_ei_decode_ulonglong(Config) when is_list(Config) ->  %% ######################################################################## %% -%% A "character" for us is an 8 bit integer, alwasy positive, i.e. +%% A "character" for us is an 8 bit integer, always positive, i.e.  %% it is unsigned.  %% FIXME maybe the API should change to use "unsigned char" to be clear?! diff --git a/lib/erl_interface/test/erl_eterm_SUITE.erl b/lib/erl_interface/test/erl_eterm_SUITE.erl index 0e51a50c19..7fd46694b8 100644 --- a/lib/erl_interface/test/erl_eterm_SUITE.erl +++ b/lib/erl_interface/test/erl_eterm_SUITE.erl @@ -31,7 +31,7 @@  %%% 2. Constructing terms (the erl_mk_xxx() functions and erl_copy_term()).  %%% 3. Extracting & info functions (erl_hd(), erl_length() etc).  %%% 4. I/O list functions. -%%% 5. Miscellanous functions. +%%% 5. Miscellaneous functions.  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  -export([all/0, suite/0, diff --git a/lib/eunit/doc/src/notes.xml b/lib/eunit/doc/src/notes.xml index 8509f44ffc..d7ec2108e9 100644 --- a/lib/eunit/doc/src/notes.xml +++ b/lib/eunit/doc/src/notes.xml @@ -498,7 +498,7 @@        <list>          <item>            <p> -	    Miscellanous updates.</p> +	    Miscellaneous updates.</p>            <p>  	    Own Id: OTP-8038</p>          </item> diff --git a/lib/hipe/cerl/cerl_to_icode.erl b/lib/hipe/cerl/cerl_to_icode.erl index acad8a9da4..e37eae8a03 100644 --- a/lib/hipe/cerl/cerl_to_icode.erl +++ b/lib/hipe/cerl/cerl_to_icode.erl @@ -2621,7 +2621,7 @@ icode_switch_val(Arg, Fail, Length, Cases) ->      hipe_icode:mk_switch_val(Arg, Fail, Length, Cases).  icode_switch_tuple_arity(Arg, Fail, Length, Cases) -> -    SortedCases = lists:keysort(1, Cases), %% immitate BEAM compiler - Kostis +    SortedCases = lists:keysort(1, Cases), %% imitate BEAM compiler - Kostis      hipe_icode:mk_switch_tuple_arity(Arg, Fail, Length, SortedCases). diff --git a/lib/hipe/doc/src/notes.xml b/lib/hipe/doc/src/notes.xml index 0bdd60adfd..314fd55ba3 100644 --- a/lib/hipe/doc/src/notes.xml +++ b/lib/hipe/doc/src/notes.xml @@ -1297,7 +1297,7 @@        <list>          <item>            <p> -	    Miscellanous updates.</p> +	    Miscellaneous updates.</p>            <p>  	    Own Id: OTP-8038</p>          </item> diff --git a/lib/hipe/flow/cfg.inc b/lib/hipe/flow/cfg.inc index 362c5b697c..17342d3b60 100644 --- a/lib/hipe/flow/cfg.inc +++ b/lib/hipe/flow/cfg.inc @@ -212,7 +212,7 @@ info_update(CFG, I) ->  -ifndef(GEN_CFG).  -spec other_entrypoints(cfg()) -> [cfg_lbl()]. -%% @doc Returns a list of labels that are refered to from the data section. +%% @doc Returns a list of labels that are referred to from the data section.  other_entrypoints(CFG) ->    hipe_consttab:referred_labels(data(CFG)). diff --git a/lib/hipe/flow/hipe_dominators.erl b/lib/hipe/flow/hipe_dominators.erl index 570452c14e..749edd4f72 100644 --- a/lib/hipe/flow/hipe_dominators.erl +++ b/lib/hipe/flow/hipe_dominators.erl @@ -317,7 +317,7 @@ updateCell(Value, Field, WD) ->  %%>----------------------------------------------------------------------<  %% Procedure : dfs/1  %% Purpose   : The main purpose of this function is to traverse the CFG in -%%             a depth first order. It is aslo used to initialize certain  +%%             a depth first order. It is also used to initialize certain  %%             elements defined in a workDataCell.  %% Arguments : CFG - a Control Flow Graph representation  %% Returns   : A table (WorkData) and the total number of elements in diff --git a/lib/hipe/llvm/hipe_rtl_to_llvm.erl b/lib/hipe/llvm/hipe_rtl_to_llvm.erl index f8911c1909..208d86841f 100644 --- a/lib/hipe/llvm/hipe_rtl_to_llvm.erl +++ b/lib/hipe/llvm/hipe_rtl_to_llvm.erl @@ -1431,7 +1431,7 @@ relocs_to_list(Relocs) ->  %%         constants/labels.  handle_relocations(Relocs, Data, Fun) ->    RelocsList = relocs_to_list(Relocs), -  %% Seperate Relocations according to their type +  %% Separate Relocations according to their type    {CallList, AtomList, ClosureList, ClosureLabels, SwitchList} =      seperate_relocs(RelocsList),    %% Create code to declare atoms @@ -1474,7 +1474,7 @@ handle_relocations(Relocs, Data, Fun) ->    LocalVariables = AtomLoad ++ ClosureLoad ++ ConstLoad,    {Relocs4, ExternalDeclarations, LocalVariables}. -%% @doc Seperate relocations according to their type. +%% @doc Separate relocations according to their type.  seperate_relocs(Relocs) ->    seperate_relocs(Relocs, [], [], [], [], []). diff --git a/lib/hipe/opt/hipe_schedule.erl b/lib/hipe/opt/hipe_schedule.erl index 531690f885..0f25940e3d 100644 --- a/lib/hipe/opt/hipe_schedule.erl +++ b/lib/hipe/opt/hipe_schedule.erl @@ -1337,10 +1337,10 @@ cd([{N,I}|Xs], DAG, PrevBr, PrevUnsafe, PrevOthers) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% Function    : cd_branch_to_other_deps  %% Argument    : N   - index of branch -%%               Ms  - list of indexes of "others" preceeding instrs +%%               Ms  - list of indexes of "others" preceding instrs  %%               DAG - dependence graph  %% Returns     : DAG - new graph -%% Description : Makes preceeding instrs fixed so they don't bypass a branch +%% Description : Makes preceding instrs fixed so they don't bypass a branch  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  cd_branch_to_other_deps(_, [], DAG) ->      DAG; diff --git a/lib/hipe/opt/hipe_spillmin_color.erl b/lib/hipe/opt/hipe_spillmin_color.erl index 50e073a467..41f1972df7 100644 --- a/lib/hipe/opt/hipe_spillmin_color.erl +++ b/lib/hipe/opt/hipe_spillmin_color.erl @@ -119,7 +119,7 @@ color_heuristic(IG, Min, Max, Safe, MaxNodes, Target, MaxDepth) ->        end;      _ ->        %% This can be increased from 2, and by this the heuristic can be -      %% exited earlier, but the same can be achived by decreasing the +      %% exited earlier, but the same can be achieved by decreasing the        %% recursion depth. This should not be decreased below 2.        case (Max - Min) < 2 of          true -> diff --git a/lib/inets/test/httpd_test_data/server_root/conf/httpd.conf b/lib/inets/test/httpd_test_data/server_root/conf/httpd.conf index 3f9fde03b5..ec05fc6714 100644 --- a/lib/inets/test/httpd_test_data/server_root/conf/httpd.conf +++ b/lib/inets/test/httpd_test_data/server_root/conf/httpd.conf @@ -128,7 +128,7 @@ SecurityDiskLogSize 200000 10  MaxClients 50 -# KeepAlive set the flag for persistent connections. For peristent connections +# KeepAlive set the flag for persistent connections. For persistent connections  # set KeepAlive to on. To use One request per connection set the flag to off  # Note: The value has changed since previous version of INETS.  KeepAlive on diff --git a/lib/inets/test/old_httpd_SUITE_data/server_root/conf/httpd.conf b/lib/inets/test/old_httpd_SUITE_data/server_root/conf/httpd.conf index 3f9fde03b5..ec05fc6714 100644 --- a/lib/inets/test/old_httpd_SUITE_data/server_root/conf/httpd.conf +++ b/lib/inets/test/old_httpd_SUITE_data/server_root/conf/httpd.conf @@ -128,7 +128,7 @@ SecurityDiskLogSize 200000 10  MaxClients 50 -# KeepAlive set the flag for persistent connections. For peristent connections +# KeepAlive set the flag for persistent connections. For persistent connections  # set KeepAlive to on. To use One request per connection set the flag to off  # Note: The value has changed since previous version of INETS.  KeepAlive on diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java index 7891871e76..b9b4223155 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java @@ -30,7 +30,7 @@ import java.util.Random;   * received from the peer.   *   * <p> - * This abstract class provides the neccesary methods to maintain the actual + * This abstract class provides the necessary methods to maintain the actual   * connection and encode the messages and headers in the proper format according   * to the Erlang distribution protocol. Subclasses can use these methods to   * provide a more or less transparent communication channel as desired. diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java index 70c9e6db4a..bd3a3f4ad3 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java @@ -38,7 +38,7 @@ package com.ericsson.otp.erlang;   * <p>   * Mailboxes can be named, either at creation or later. Messages can be sent to   * named mailboxes and named Erlang processes without knowing the - * {@link OtpErlangPid pid} that identifies the mailbox. This is neccessary in + * {@link OtpErlangPid pid} that identifies the mailbox. This is necessary in   * order to set up initial communication between parts of an application. Each   * mailbox can have at most one name.   * </p> diff --git a/lib/kernel/doc/src/notes.xml b/lib/kernel/doc/src/notes.xml index 9277c2d353..d80c4f077c 100644 --- a/lib/kernel/doc/src/notes.xml +++ b/lib/kernel/doc/src/notes.xml @@ -108,7 +108,7 @@          <item>            <p>  	    Close stdin of commands run in os:cmd. This is a -	    backwards compatiblity fix that restores the behaviour of +	    backwards compatibility fix that restores the behaviour of  	    pre 19.0 os:cmd.</p>            <p>  	    Own Id: OTP-13867 Aux Id: seq13178 </p> @@ -1445,7 +1445,7 @@  	    dependent, so applications aiming to be portable should  	    consider using <c>{ipv6_v6only,true}</c> when creating an  	    <c>inet6</c> listening/destination socket, and if -	    neccesary also create an <c>inet</c> socket on the same +	    necessary also create an <c>inet</c> socket on the same  	    port for IPv4 traffic. See the documentation.</p>            <p>  	    Own Id: OTP-8928 Aux Id: kunagi-193 [104] </p> diff --git a/lib/kernel/include/inet.hrl b/lib/kernel/include/inet.hrl index b39df8c3f2..df788aca08 100644 --- a/lib/kernel/include/inet.hrl +++ b/lib/kernel/include/inet.hrl @@ -22,7 +22,7 @@  -record(hostent,  	{ -	 h_name		  :: inet:hostname(),	%% offical name of host +	 h_name		  :: inet:hostname(),	%% official name of host  	 h_aliases = []   :: [inet:hostname()],	%% alias list  	 h_addrtype	  :: 'inet' | 'inet6',	%% host address type  	 h_length	  :: non_neg_integer(),	%% length of address diff --git a/lib/kernel/src/inet_parse.erl b/lib/kernel/src/inet_parse.erl index b0a3ee3008..9b47199e08 100644 --- a/lib/kernel/src/inet_parse.erl +++ b/lib/kernel/src/inet_parse.erl @@ -701,8 +701,8 @@ dup(N, E, L) when is_integer(N), N >= 1 -> -%% Convert IPv4 adress to ascii -%% Convert IPv6 / IPV4 adress to ascii (plain format) +%% Convert IPv4 address to ascii +%% Convert IPv6 / IPV4 address to ascii (plain format)  ntoa({A,B,C,D}) ->      integer_to_list(A) ++ "." ++ integer_to_list(B) ++ "." ++   	integer_to_list(C) ++ "." ++ integer_to_list(D); diff --git a/lib/kernel/src/inet_udp.erl b/lib/kernel/src/inet_udp.erl index 8a8aa8ecca..c69791b9aa 100644 --- a/lib/kernel/src/inet_udp.erl +++ b/lib/kernel/src/inet_udp.erl @@ -113,7 +113,7 @@ fdopen(Fd, Opts) ->  %% Here's how:  %%   Reverse the list.  %%   For each head option go through the tail and remove -%%   all occurences of the same option from the tail. +%%   all occurrences of the same option from the tail.  %%   Store that head option and iterate using the new tail.  %%   Return the list of stored head options.  optuniquify(List) -> @@ -122,8 +122,8 @@ optuniquify(List) ->  optuniquify([], Result) ->      Result;  optuniquify([Opt | Tail], Result) -> -    %% Remove all occurences of Opt in Tail,  -    %% prepend Opt to Result,  +    %% Remove all occurrences of Opt in Tail, +    %% prepend Opt to Result,      %% then iterate back here.      optuniquify(Opt, Tail, [], Result). diff --git a/lib/kernel/test/application_SUITE.erl b/lib/kernel/test/application_SUITE.erl index 81407e9d96..b4cf31b210 100644 --- a/lib/kernel/test/application_SUITE.erl +++ b/lib/kernel/test/application_SUITE.erl @@ -1498,7 +1498,7 @@ otp_5363(Conf) when is_list(Conf) ->  %% Ticket: OTP-5606  %% Slogan: Problems with starting a distributed application  %%----------------------------------------------------------------- -%% Test of several processes simultanously starting the same +%% Test of several processes simultaneously starting the same  %% distributed application.  otp_5606(Conf) when is_list(Conf) -> diff --git a/lib/kernel/test/erl_distribution_SUITE.erl b/lib/kernel/test/erl_distribution_SUITE.erl index f630896e03..09c80a0956 100644 --- a/lib/kernel/test/erl_distribution_SUITE.erl +++ b/lib/kernel/test/erl_distribution_SUITE.erl @@ -233,7 +233,7 @@ time_ping(Node) ->      erlang:convert_time_unit(T1 - T0, native, millisecond).  %% Keep the connection with the client node up. -%% This is neccessary as the client node runs with much shorter +%% This is necessary as the client node runs with much shorter  %% tick time !!  keep_conn(Node) ->      sleep(1), @@ -1059,7 +1059,7 @@ monitor_nodes_otp_6481_test(Config, TestType) when is_list(Config) ->      RemotePid = spawn(Node,  		      fun () ->  			      receive after 1500 -> ok end, -			      %% infinit loop of msgs +			      %% infinite loop of msgs  			      %% we want an endless stream of messages and the kill  			      %% the node mercilessly.  			      %% We then want to ensure that the nodedown message arrives diff --git a/lib/kernel/test/erl_distribution_wb_SUITE.erl b/lib/kernel/test/erl_distribution_wb_SUITE.erl index 6a23ad0d11..61aa3b32ee 100644 --- a/lib/kernel/test/erl_distribution_wb_SUITE.erl +++ b/lib/kernel/test/erl_distribution_wb_SUITE.erl @@ -30,7 +30,7 @@  %% 1)  %% -%% Connections are now always set up symetrically with respect to +%% Connections are now always set up symmetrically with respect to  %% publication. If connecting node doesn't send DFLAG_PUBLISHED  %% the other node wont send DFLAG_PUBLISHED. If the connecting  %% node send DFLAG_PUBLISHED but the other node doesn't send diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index f2094431d8..b402f01758 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -18,7 +18,7 @@  %% %CopyrightEnd%  %% -%% This is a developement feature when developing a new file module, +%% This is a development feature when developing a new file module,  %% ugly but practical.  -ifndef(FILE_MODULE).  -define(FILE_MODULE, file). diff --git a/lib/kernel/test/file_SUITE_data/realmen.html b/lib/kernel/test/file_SUITE_data/realmen.html index c810a5d088..92e13f23b8 100644 --- a/lib/kernel/test/file_SUITE_data/realmen.html +++ b/lib/kernel/test/file_SUITE_data/realmen.html @@ -237,7 +237,7 @@ destroy most of the interesting uses for EQUIVALENCE, and make it  impossible to modify the operating system code with negative  subscripts. Worst of all, bounds checking is inefficient. -<LI> Source code maintainance systems. A Real Programmer keeps his +<LI> Source code maintenance systems. A Real Programmer keeps his  code locked up in a card file, because it implies that its owner  cannot leave his important programs unguarded [5]. @@ -396,7 +396,7 @@ double stuff Oreos for special occasions.  <LI> Underneath the Oreos is a flow-charting template, left there by  the previous occupant of the office. (Real Programmers write programs, -not documentation. Leave that to the maintainence people.) +not documentation. Leave that to the maintenance people.)  </UL> <P> diff --git a/lib/megaco/src/text/megaco_text_gen_prev3a.hrl b/lib/megaco/src/text/megaco_text_gen_prev3a.hrl index ae4a990779..9c75ee5926 100644 --- a/lib/megaco/src/text/megaco_text_gen_prev3a.hrl +++ b/lib/megaco/src/text/megaco_text_gen_prev3a.hrl @@ -424,7 +424,7 @@ enc_TransactionReply(#'TransactionReply'{transactionId        = Tid,  					 transactionResult    = Res,  					 %% These fields are actually not   					 %% supported in this implementation, -					 %% but because the messanger module +					 %% but because the messenger module  					 %% cannot see any diff between the  					 %% various v3 implementations...  					 segmentNumber        = asn1_NOVALUE, diff --git a/lib/megaco/src/text/megaco_text_gen_prev3b.hrl b/lib/megaco/src/text/megaco_text_gen_prev3b.hrl index e7fb85d137..7e85be4d64 100644 --- a/lib/megaco/src/text/megaco_text_gen_prev3b.hrl +++ b/lib/megaco/src/text/megaco_text_gen_prev3b.hrl @@ -424,7 +424,7 @@ enc_TransactionReply(#'TransactionReply'{transactionId        = Tid,  					 transactionResult    = Res,  					 %% These fields are actually not   					 %% supported in this implementation, -					 %% but because the messanger module +					 %% but because the messenger module  					 %% cannot see any diff between the  					 %% various v3 implementations...  					 segmentNumber        = asn1_NOVALUE, diff --git a/lib/megaco/src/text/megaco_text_gen_prev3c.hrl b/lib/megaco/src/text/megaco_text_gen_prev3c.hrl index 722e97a743..700392efe2 100644 --- a/lib/megaco/src/text/megaco_text_gen_prev3c.hrl +++ b/lib/megaco/src/text/megaco_text_gen_prev3c.hrl @@ -434,7 +434,7 @@ enc_TransactionReply(#'TransactionReply'{transactionId        = Tid,  					 transactionResult    = Res,   					 %% These fields are actually not   					 %% supported in this implementation, -					 %% but because the messanger module +					 %% but because the messenger module  					 %% cannot see any diff between the  					 %% various v3 implementations...     					 segmentNumber        = asn1_NOVALUE, diff --git a/lib/mnesia/src/mnesia_monitor.erl b/lib/mnesia/src/mnesia_monitor.erl index ab78c9b13e..ff58974aba 100644 --- a/lib/mnesia/src/mnesia_monitor.erl +++ b/lib/mnesia/src/mnesia_monitor.erl @@ -169,7 +169,7 @@ check_protocol([{Node, {accept, Mon, Version, Protocol}} | Tail], Protocols) ->  	    verbose("Failed to connect with ~p. ~p protocols rejected. "  		    "expected version = ~p, expected protocol = ~p~n",  		    [Node, Protocols, Version, Protocol]), -	    unlink(Mon), % Get rid of unneccessary link +	    unlink(Mon), % Get rid of unnecessary link  	    check_protocol(Tail, Protocols)      end;  check_protocol([{Node, {reject, _Mon, Version, Protocol}} | Tail], Protocols) -> diff --git a/lib/mnesia/src/mnesia_schema.erl b/lib/mnesia/src/mnesia_schema.erl index 0e4017e4c3..b0d7965886 100644 --- a/lib/mnesia/src/mnesia_schema.erl +++ b/lib/mnesia/src/mnesia_schema.erl @@ -1941,7 +1941,7 @@ make_change_table_copy_type(Tab, Node, ToS) ->  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% change index functions .... -%% Pos is allready added by 1 in both of these functions +%% Pos is already added by 1 in both of these functions  add_table_index(Tab, Pos) ->      schema_transaction(fun() -> do_add_table_index(Tab, Pos) end). diff --git a/lib/orber/src/orber_iiop.hrl b/lib/orber/src/orber_iiop.hrl index 6bc82fb6d6..1b5d6a84ef 100644 --- a/lib/orber/src/orber_iiop.hrl +++ b/lib/orber/src/orber_iiop.hrl @@ -279,8 +279,8 @@  %%----------------------------------------------------------------------  %% Profile Body  %% -%% iiop_version: describes the version of IIOP that the agent at the  -%%		specified adress is prepared to receive. +%% iiop_version: describes the version of IIOP that the agent at the +%%		specified address is prepared to receive.  %% host: identifies the internet host to which the GIOP messages  %%		for the specified object may be sent.  %% port: contains the TCP?IP port number where the target agnet is listening diff --git a/lib/orber/src/orber_initial_references.erl b/lib/orber/src/orber_initial_references.erl index 738d702088..8caf69a68b 100644 --- a/lib/orber/src/orber_initial_references.erl +++ b/lib/orber/src/orber_initial_references.erl @@ -89,7 +89,7 @@ install(Timeout, Options) ->  		end,      Wait = mnesia:wait_for_tables([orber_references], Timeout), -    %% Check if any error has occured yet. If there are errors, return them. +    %% Check if any error has occurred yet. If there are errors, return them.      if  	DB_Result == {atomic, ok},  	Wait == ok -> diff --git a/lib/orber/src/orber_objectkeys.erl b/lib/orber/src/orber_objectkeys.erl index 1233e4e721..3b1851e9b5 100644 --- a/lib/orber/src/orber_objectkeys.erl +++ b/lib/orber/src/orber_objectkeys.erl @@ -344,7 +344,7 @@ install(Timeout, Options) ->  		end,      Wait = mnesia:wait_for_tables([orber_objkeys], Timeout), -    %% Check if any error has occured yet. If there are errors, return them. +    %% Check if any error has occurred yet. If there are errors, return them.      if  	DB_Result == {atomic, ok},  	Wait == ok -> diff --git a/lib/parsetools/src/leex.erl b/lib/parsetools/src/leex.erl index 602e47404d..e0f37ae9df 100644 --- a/lib/parsetools/src/leex.erl +++ b/lib/parsetools/src/leex.erl @@ -1264,7 +1264,7 @@ pack_dfa([], _, Rs, PDFA) -> {PDFA,Rs}.  %%      {Action, AcceptLength, CurrTokLen, RestChars, Line, State}.  %% The return CurrTokLen is always the current number of characters -%% scanned in the current token. The returns have the follwoing +%% scanned in the current token. The returns have the following  %% meanings:  %% {Action, AcceptLength, RestChars, Line} -  %%  The scanner has reached an accepting end-state, for example after @@ -1281,7 +1281,7 @@ pack_dfa([], _, Rs, PDFA) -> {PDFA,Rs}.  %%  %% {reject, AcceptLength, CurrTokLen, RestChars, Line, State} -  %% {Action, AcceptLength, CurrTokLen, RestChars, Line, State} - -%%  The scanner has reached a non-accepting transistion state. If +%%  The scanner has reached a non-accepting transition state. If  %%  RestChars == [] we need to get more characters to continue.  %%  Otherwise if 'reject' then no accepting state has been reached it  %%  is an error. If we have an Action and AcceptLength then these are diff --git a/lib/public_key/asn1/PKCS-8.asn1 b/lib/public_key/asn1/PKCS-8.asn1 index 8412345b68..292a7b2029 100644 --- a/lib/public_key/asn1/PKCS-8.asn1 +++ b/lib/public_key/asn1/PKCS-8.asn1 @@ -26,7 +26,7 @@ BEGIN  -- This import is really unnecessary since ALGORITHM-IDENTIFIER is defined as a   -- TYPE-IDENTIFIER --- Renome this import and replace all occurences of ALGORITHM-IDENTIFIER with +-- Rename this import and replace all occurrences of ALGORITHM-IDENTIFIER with  -- TYPE-IDENTIFIER as a workaround for weaknesses in the ASN.1 compiler  --AlgorithmIdentifier, ALGORITHM-IDENTIFIER  --        FROM PKCS5v2-0 {iso(1) member-body(2) us(840) rsadsi(113549) diff --git a/lib/snmp/test/snmp_manager_test.erl b/lib/snmp/test/snmp_manager_test.erl index 71f4017d8b..054e998af4 100644 --- a/lib/snmp/test/snmp_manager_test.erl +++ b/lib/snmp/test/snmp_manager_test.erl @@ -1760,7 +1760,7 @@ do_simple_sync_get2(Node, TargetName, Oids, Get, PostVerify)  	 "~n   Rem:   ~w", [Reply, _Rem]),      %% verify that the operation actually worked: -    %% The order should be the same, so no need to seach  +    %% The order should be the same, so no need to search      ?line ok = case Reply of  		   {noError, 0, [#varbind{oid   = ?sysObjectID_instance,  					  value = SysObjectID},  @@ -2709,7 +2709,7 @@ do_simple_set2(Node, TargetName, VAVs, Set, PostVerify) ->  	 "~n   Rem:   ~w", [Reply, _Rem]),      %% verify that the operation actually worked: -    %% The order should be the same, so no need to seach  +    %% The order should be the same, so no need to search      %% The value we get should be exactly the same as we sent      ?line ok = case Reply of  		   {noError, 0, [#varbind{oid   = ?sysName_instance, @@ -5118,10 +5118,10 @@ inform_swarm_collector(N) ->  %% Note that we need to deal with re-transmissions!  %% That is, the agent did not receive the ack in time, -%% and therefor did a re-transmit. This means that we  -%% expect to receive more inform's then we actually  -%% sent. So for sucess we assume:  -%%  +%% and therefor did a re-transmit. This means that we +%% expect to receive more inform's then we actually +%% sent. So for success we assume: +%%  %%     SentAckCnt =  N  %%     RespCnt    =  N  %%     RecvCnt    >= N diff --git a/lib/ssh/src/ssh_sftp.erl b/lib/ssh/src/ssh_sftp.erl index b937f0412d..8d994cdb43 100644 --- a/lib/ssh/src/ssh_sftp.erl +++ b/lib/ssh/src/ssh_sftp.erl @@ -294,7 +294,7 @@ read(Pid, Handle, Len) ->  read(Pid, Handle, Len, FileOpTimeout) ->      call(Pid, {read,false,Handle, Len}, FileOpTimeout). -%% TODO this ought to be a cast! Is so in all practial meaning +%% TODO this ought to be a cast! Is so in all practical meaning  %% even if it is obscure!  apread(Pid, Handle, Offset, Len) ->      call(Pid, {pread,true,Handle, Offset, Len}, infinity). @@ -313,12 +313,12 @@ write(Pid, Handle, Data) ->  write(Pid, Handle, Data, FileOpTimeout) ->      call(Pid, {write,false,Handle,Data}, FileOpTimeout). -%% TODO this ought to be a cast! Is so in all practial meaning +%% TODO this ought to be a cast! Is so in all practical meaning  %% even if it is obscure!  apwrite(Pid, Handle, Offset, Data) ->      call(Pid, {pwrite,true,Handle,Offset,Data}, infinity). -%% TODO this ought to be a cast!  Is so in all practial meaning +%% TODO this ought to be a cast!  Is so in all practical meaning  %% even if it is obscure!  awrite(Pid, Handle, Data) ->      call(Pid, {write,true,Handle,Data}, infinity). diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index 5d178a202d..a17ad560d1 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -481,7 +481,7 @@ handle_kex_dh_gex_request(#ssh_msg_kex_dh_gex_request_old{n = NBits},      %% This message was in the draft-00 of rfc4419      %% (https://tools.ietf.org/html/draft-ietf-secsh-dh-group-exchange-00)      %% In later drafts and the rfc is "is used for backward compatibility". -    %% Unfortunatly the rfc does not specify how to treat the parameter n +    %% Unfortunately the rfc does not specify how to treat the parameter n      %% if there is no group of that modulus length :(      %% The draft-00 however specifies that n is the "... number of bits      %% the subgroup should have at least". diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 86c3d5de26..425b4d20f2 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -442,7 +442,7 @@ erlang_server_openssh_client_renegotiate(Config) ->  	ssh_test_lib:rcv_expected(Expect, OpenSsh, ?TIMEOUT)      of  	_ -> -	    %% Unfortunatly we can't check that there has been a renegotiation, just trust OpenSSH. +	    %% Unfortunately we can't check that there has been a renegotiation, just trust OpenSSH.  	    ssh:stop_daemon(Pid)      catch  	throw:{skip,R} -> {skip,R} diff --git a/lib/ssl/src/dtls_record.erl b/lib/ssl/src/dtls_record.erl index f447897d59..0ee51c24b6 100644 --- a/lib/ssl/src/dtls_record.erl +++ b/lib/ssl/src/dtls_record.erl @@ -393,7 +393,7 @@ init_connection_state_seq(_, ConnnectionStates) ->  					    integer().  %%  %% Description: Returns the epoch the connection_state record -%% that is currently defined as the current conection state. +%% that is currently defined as the current connection state.  %%--------------------------------------------------------------------  current_connection_state_epoch(#{current_read := #{epoch := Epoch}},  			       read) -> diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index 4fbac4cad3..0c17891fbc 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -1017,7 +1017,7 @@ terminate(_, _, #state{terminated = true}) ->      %% Happens when user closes the connection using ssl:close/1      %% we want to guarantee that Transport:close has been called      %% when ssl:close/1 returns unless it is a downgrade where -    %% we want to guarantee that close alert is recived before  +    %% we want to guarantee that close alert is received before      %% returning. In both cases terminate has been run manually      %% before run by gen_statem which will end up here      ok; diff --git a/lib/ssl/src/ssl_record.erl b/lib/ssl/src/ssl_record.erl index b10069c3cb..539e189c4f 100644 --- a/lib/ssl/src/ssl_record.erl +++ b/lib/ssl/src/ssl_record.erl @@ -67,7 +67,7 @@  				      connection_state().  %%  %% Description: Returns the instance of the connection_state map -%% that is currently defined as the current conection state. +%% that is currently defined as the current connection state.  %%--------------------------------------------------------------------  current_connection_state(ConnectionStates, read) ->      maps:get(current_read, ConnectionStates); @@ -79,7 +79,7 @@ current_connection_state(ConnectionStates, write) ->  				      connection_state().  %%  %% Description: Returns the instance of the connection_state map -%% that is pendingly defined as the pending conection state. +%% that is pendingly defined as the pending connection state.  %%--------------------------------------------------------------------  pending_connection_state(ConnectionStates, read) ->      maps:get(pending_read, ConnectionStates); diff --git a/lib/ssl/src/tls_handshake.erl b/lib/ssl/src/tls_handshake.erl index f4803ce19f..5726561865 100644 --- a/lib/ssl/src/tls_handshake.erl +++ b/lib/ssl/src/tls_handshake.erl @@ -88,7 +88,7 @@ client_hello(Host, Port, ConnectionStates,  		    #hello_extensions{}, {ssl_cipher:hash(), ssl_cipher:sign_algo()} | undefined} |  		   #alert{}.  %% -%% Description: Handles a recieved hello message +%% Description: Handles a received hello message  %%--------------------------------------------------------------------  hello(#server_hello{server_version = Version, random = Random,  		    cipher_suite = CipherSuite, diff --git a/lib/ssl/src/tls_v1.erl b/lib/ssl/src/tls_v1.erl index 7f24ce5192..e2e224ab0c 100644 --- a/lib/ssl/src/tls_v1.erl +++ b/lib/ssl/src/tls_v1.erl @@ -407,7 +407,7 @@ is_pair(Hash, rsa, Hashs) ->      AtLeastMd5 = Hashs -- [md2,md4],      lists:member(Hash, AtLeastMd5). -%% list ECC curves in prefered order +%% list ECC curves in preferred order  -spec ecc_curves(1..3 | all) -> [named_curve()].  ecc_curves(all) ->      [sect571r1,sect571k1,secp521r1,brainpoolP512r1, diff --git a/lib/stdlib/src/gen_fsm.erl b/lib/stdlib/src/gen_fsm.erl index 6e7528fd98..e925a75fe8 100644 --- a/lib/stdlib/src/gen_fsm.erl +++ b/lib/stdlib/src/gen_fsm.erl @@ -273,7 +273,7 @@ start_timer(Time, Msg) ->  send_event_after(Time, Event) ->      erlang:start_timer(Time, self(), {'$gen_event', Event}). -%% Returns the remaing time for the timer if Ref referred to  +%% Returns the remaining time for the timer if Ref referred to  %% an active timer/send_event_after, false otherwise.  cancel_timer(Ref) ->      case erlang:cancel_timer(Ref) of diff --git a/lib/stdlib/src/io_lib.erl b/lib/stdlib/src/io_lib.erl index ad98bc0420..a91143a764 100644 --- a/lib/stdlib/src/io_lib.erl +++ b/lib/stdlib/src/io_lib.erl @@ -28,7 +28,7 @@  %% Most of the code here is derived from the original prolog versions and  %% from similar code written by Joe Armstrong and myself.  %% -%% This module has been split into seperate modules: +%% This module has been split into separate modules:  %% io_lib        - basic write and utilities  %% io_lib_format - formatted output  %% io_lib_fread  - formatted input diff --git a/lib/stdlib/src/proplists.erl b/lib/stdlib/src/proplists.erl index 21de8c45c1..340dfdcac9 100644 --- a/lib/stdlib/src/proplists.erl +++ b/lib/stdlib/src/proplists.erl @@ -83,7 +83,7 @@ property(Key, Value) ->  %% --------------------------------------------------------------------- -%% @doc Unfolds all occurences of atoms in <code>ListIn</code> to tuples +%% @doc Unfolds all occurrences of atoms in <code>ListIn</code> to tuples  %% <code>{Atom, true}</code>.  %%  %% @see compact/1 diff --git a/lib/stdlib/test/base64_SUITE.erl b/lib/stdlib/test/base64_SUITE.erl index d0abe5c961..6ddc67464c 100644 --- a/lib/stdlib/test/base64_SUITE.erl +++ b/lib/stdlib/test/base64_SUITE.erl @@ -82,7 +82,7 @@ base64_decode(Config) when is_list(Config) ->      Alphabet = list_to_binary(lists:seq(0, 255)),      Alphabet = base64:decode(base64:encode(Alphabet)), -    %% Encoded base 64 strings may be devided by non base 64 chars. +    %% Encoded base 64 strings may be divided by non base 64 chars.      %% In this cases whitespaces.      "0123456789!@#0^&*();:<>,. []{}" =  	base64:decode_to_string( diff --git a/lib/wx/api_gen/gen_util.erl b/lib/wx/api_gen/gen_util.erl index cd42ad2d96..49a3cb521e 100644 --- a/lib/wx/api_gen/gen_util.erl +++ b/lib/wx/api_gen/gen_util.erl @@ -203,7 +203,7 @@ replace_and_remove([$; | R], Acc) ->  replace_and_remove([$@ | R], Acc) ->      replace_and_remove(R, [directive|Acc]); -replace_and_remove([_E|R], Acc) ->       %% Ignore everthing else +replace_and_remove([_E|R], Acc) ->       %% Ignore everything else      replace_and_remove(R, Acc);  replace_and_remove([], Acc) ->      Acc. diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl index d4b6db8153..4b208001a0 100644 --- a/lib/wx/api_gen/wx_gen_cpp.erl +++ b/lib/wx/api_gen/wx_gen_cpp.erl @@ -627,7 +627,7 @@ decode_arg(N,#type{name="wxArrayString"},Place,A0) ->      w(" int * ~sLen = (int *) bp; bp += 4;~n", [N]),      case Place of  	arg -> w(" wxArrayString ~s;~n", [N]); -	opt -> ignore %% Allready declared +	opt -> ignore %% Already declared      end,      w(" int ~sASz = 0, * ~sTemp;~n", [N,N]),      w(" for(int i=0; i < *~sLen; i++) {~n", [N]), diff --git a/lib/xmerl/src/xmerl_regexp.erl b/lib/xmerl/src/xmerl_regexp.erl index fc89b80ff1..566b77725f 100644 --- a/lib/xmerl/src/xmerl_regexp.erl +++ b/lib/xmerl/src/xmerl_regexp.erl @@ -1154,7 +1154,7 @@ comp_crs([], Last) -> [{Last,maxchar}].  %% build_dfa(NFA, NfaStartState) -> {DFA,DfaStartState}.  %%  Build a DFA from an NFA using "subset construction". The major  %%  difference from the book is that we keep the marked and unmarked -%%  DFA states in seperate lists. New DFA states are added to the +%%  DFA states in separate lists. New DFA states are added to the  %%  unmarked list and states are marked by moving them to the marked  %%  list. We assume that the NFA accepting state numbers are in  %%  ascending order for the rules and use ordsets to keep this order. | 
