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 MylesBorins committed Nov 19, 2016
1 parent 6f212b9 commit a5860b4
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 a5860b4

Please sign in to comment.