From b824a0b7d0e053708263bbc4f8522eb389b47b98 Mon Sep 17 00:00:00 2001 From: hiroki osame Date: Thu, 9 Jun 2022 05:52:50 -0400 Subject: [PATCH] doc: fix specifier example in `esm.md` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/43351 Reviewed-By: Jacob Smith Reviewed-By: Geoffrey Booth Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel --- doc/api/esm.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 7dc7caeaa3c1a1..d6b22c027c864f 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -116,8 +116,9 @@ This section was moved to [Modules: Packages](packages.md). ### Terminology The _specifier_ of an `import` statement is the string after the `from` keyword, -e.g. `'path'` in `import { sep } from 'node:path'`. Specifiers are also used in -`export from` statements, and as the argument to an `import()` expression. +e.g. `'node:path'` in `import { sep } from 'node:path'`. Specifiers are also +used in `export from` statements, and as the argument to an `import()` +expression. There are three types of specifiers: