File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,11 +341,11 @@ defmodule Code do
341
341
342
342
Accepts `relative_to` as an argument to tell where the file is located.
343
343
The return value is the same as that of `load_file/2`. If the file was already
344
- required/loaded, doesn't do anything and returns `nil`.
344
+ required/loaded, `require_file` doesn't do anything and returns `nil`.
345
345
346
346
Notice that if `require_file` is invoked by different processes concurrently,
347
347
the first process to invoke `require_file` acquires a lock and the remaining
348
- ones will block until the file is available. I.e. if `require_file` is called
348
+ ones will block until the file is available. I.e., if `require_file` is called
349
349
N times with a given file, it will be loaded only once. The first process to
350
350
call `require_file` will get the list of loaded modules, others will get `nil`.
351
351
You can’t perform that action at this time.
0 commit comments