@@ -29,7 +29,7 @@ Erlang/OTP with references to relevant parts of the documentation.
2929
3030Erlang programs must be _ compiled_ to object code. The compiler can generate a
3131new file that contains the object code. The current abstract machine, which runs
32- the object code, is called BEAM, therefore the object files get the suffix
32+ the object code, is called BEAM and therefore the object files get the suffix
3333` .beam ` . The compiler can also generate a binary which can be loaded directly.
3434
3535The compiler is located in the module ` m:compile ` in Compiler.
@@ -53,7 +53,7 @@ The compiler can also be accessed from the OS prompt using the
5353% erl -make
5454```
5555
56- The ` erlc ` program provides way to compile modules from the OS
56+ The ` erlc ` program provides a way to compile modules from the OS
5757shell, see the [ erlc] ( `e:erts:erlc_cmd.md` ) executable in ERTS. It
5858understands a number of flags that can be used to define macros, add search
5959paths for include files, and more.
@@ -73,7 +73,7 @@ The code server loads code according to a code loading strategy, which is either
7373_ interactive_ (default) or _ embedded_ . In interactive mode, code is searched for
7474in a _ code path_ and loaded when first referenced. In embedded mode, code is
7575loaded at start-up according to a _ boot script_ . This is described in
76- [ System Principles ] ( `e:system:system_principles.md#code_loading` ) .
76+ [ System Principles] ( `e:system:system_principles.md#code_loading` ) .
7777
7878## Code Replacement
7979
@@ -85,12 +85,12 @@ When a module is loaded into the system for the first time, the code becomes
8585'current'. If then a new instance of the module is loaded, the code of the
8686previous instance becomes 'old' and the new instance becomes 'current'.
8787
88- Both old and current code is valid, and can be evaluated concurrently. Fully
88+ Both old and current code are valid, and can be evaluated concurrently. Fully
8989qualified function calls always refer to current code. Old code can still be
9090evaluated because of processes lingering in the old code.
9191
9292If a third instance of the module is loaded, the code server removes (purges)
93- the old code and any processes lingering in it is terminated. Then the third
93+ the old code and any processes lingering in it are terminated. Then the third
9494instance becomes 'current' and the previously current code becomes 'old'.
9595
9696To change from old code to current code, a process must make a fully qualified
@@ -147,7 +147,7 @@ and can be called until the `on_load` function has returned. If the `on_load`
147147function fails, the current code (if any) will remain current. If there is no
148148current code for a module, any process that makes an external call to the module
149149before the ` on_load ` function has finished will be suspended until the ` on_load `
150- function have finished.
150+ function has finished.
151151
152152> #### Change {: .info }
153153>
@@ -172,4 +172,4 @@ load_my_nifs() ->
172172```
173173
174174If the call to ` erlang:load_nif/2 ` fails, the module is unloaded and a warning
175- report is sent to the error loader .
175+ report is sent to the error logger .
0 commit comments