Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: modernize and fix code examples in modules.md #12224

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
doc: use object destructuring in modules.md
  • Loading branch information
vsemozhetbyt committed Apr 5, 2017
commit e1f89971a27b4c53b6a114e344de2d1b99c5420d
2 changes: 1 addition & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ directory as `foo.js`.
Here are the contents of `circle.js`:

```js
const PI = Math.PI;
const { PI } = Math;

exports.area = (r) => PI * r * r;

Expand Down