diff --git a/docs/getting-started/6-explaining-globs.md b/docs/getting-started/6-explaining-globs.md index 11f34fae0..f6e1929a6 100644 --- a/docs/getting-started/6-explaining-globs.md +++ b/docs/getting-started/6-explaining-globs.md @@ -28,7 +28,7 @@ const invalidGlob = path.join(__dirname, 'src/*.js'); ## Special character: * (single-star) -Matches any amount - including none - of characters within a single segment. Useful for globbing files within one directory. +Matches any amount - including none - of the characters within a single segment. Useful for globbing files within one directory. This glob will match files like `index.js`, but not files like `scripts/index.js` or `scripts/nested/index.js` ```js @@ -37,7 +37,7 @@ This glob will match files like `index.js`, but not files like `scripts/index.js ## Special character: ** (double-star) -Matches any amount - including none - of characters across segments. Useful for globbing files in nested directories. Make sure to appropriately restrict your double-star globs, to avoid matching large directories unnecessarily. +Matches any amount - including none - of the characters across segments. Useful for globbing files in nested directories. Make sure to appropriately restrict your double-star globs, to avoid matching large directories unnecessarily. Here, the glob is appropriately restricted to the `scripts/` directory. It will match files like `scripts/index.js`, `scripts/nested/index.js`, and `scripts/nested/twice/index.js`.