Skip to content

Commit

Permalink
doc: clarify relation between a file and a module
Browse files Browse the repository at this point in the history
PR-URL: #9026
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
marzelin authored and jasnell committed Oct 26, 2016
1 parent 1ee36f6 commit f45eb16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<!--name=module-->

Node.js has a simple module loading system. In Node.js, files and modules are
in one-to-one correspondence. As an example, `foo.js` loads the module
`circle.js` in the same directory.
Node.js has a simple module loading system. In Node.js, files and modules
are in one-to-one correspondence (each file is treated as a separate module).
As an example, `foo.js` loads the module `circle.js` in the same directory.

The contents of `foo.js`:

Expand Down

0 comments on commit f45eb16

Please sign in to comment.