Skip to content

Commit d9f11dd

Browse files
xtianfishcakez
authored andcommitted
Code: Improve grammar in require_file docs (#6232)
1 parent a6ed2bf commit d9f11dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/code.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ defmodule Code do
341341
342342
Accepts `relative_to` as an argument to tell where the file is located.
343343
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`.
345345
346346
Notice that if `require_file` is invoked by different processes concurrently,
347347
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
349349
N times with a given file, it will be loaded only once. The first process to
350350
call `require_file` will get the list of loaded modules, others will get `nil`.
351351

0 commit comments

Comments
 (0)