diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-11-09 14:03:49 +0200 |
---|---|---|
committer | Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> | 2019-11-12 16:55:27 -0800 |
commit | 3d926898db50699e081a8ce077e212339fde082c (patch) | |
tree | 1c5a472e533b7c5814ac7365171cf691412ef8cc /doc/api/modules.md | |
parent | 796f3d0af49164314868c4778af90eca356f1fef (diff) | |
download | android-node-v8-3d926898db50699e081a8ce077e212339fde082c.tar.gz android-node-v8-3d926898db50699e081a8ce077e212339fde082c.tar.bz2 android-node-v8-3d926898db50699e081a8ce077e212339fde082c.zip |
doc: fix some recent doc nits
* Fix formatting.
* Fix list numbering.
* Unify abbreviation casing.
* Use an uppercased constructor in a hypothetic code example.
* Fix typos.
* Fix sorting in sections and references.
PR-URL: https://github.com/nodejs/node/pull/30341
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r-- | doc/api/modules.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md index d685662921..ff7191e462 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -234,15 +234,15 @@ RESOLVE_BARE_SPECIFIER(DIR, X) b. If "exports" is null or undefined, GOTO 3. c. If "exports" is an object with some keys starting with "." and some keys not starting with ".", throw "invalid config". - c. If "exports" is a string, or object with no keys starting with ".", treat + d. If "exports" is a string, or object with no keys starting with ".", treat it as having that value as its "." object property. - d. If subpath is "." and "exports" does not have a "." entry, GOTO 3. - e. Find the longest key in "exports" that the subpath starts with. - f. If no such key can be found, throw "not found". - g. let RESOLVED_URL = + e. If subpath is "." and "exports" does not have a "." entry, GOTO 3. + f. Find the longest key in "exports" that the subpath starts with. + g. If no such key can be found, throw "not found". + h. let RESOLVED_URL = PACKAGE_EXPORTS_TARGET_RESOLVE(pathToFileURL(DIR/name), exports[key], - subpath.slice(key.length)), as defined in the esm resolver. - h. return fileURLToPath(RESOLVED_URL) + subpath.slice(key.length)), as defined in the ESM resolver. + i. return fileURLToPath(RESOLVED_URL) 3. return DIR/X ``` |