Skip to content

Commit 74d4e38

Browse files
timkuijstentargos
authored andcommitted
doc: fix some policy scope typos
PR-URL: #51234 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e0789fb commit 74d4e38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/permissions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ different strings to point to the same module (such as excluding the extension).
178178

179179
Specifier strings are canonicalized but not resolved prior to be used for
180180
matching in order to have some compatibility with import maps, for example if a
181-
resource `file:///C:/app/server.js` was given the following redirection from a
181+
resource `file:///C:/app/utils.js` was given the following redirection from a
182182
policy located at `file:///C:/app/policy.json`:
183183

184184
```json
@@ -303,15 +303,15 @@ delegate to the next relevant scope for `file:///C:/app/bin/main.js`, `"file:"`.
303303

304304
This determines the policy for all file based resources within `"file:///C:/"`.
305305
This is not in the `"scopes"` field of the policy and would be skipped. It would
306-
not be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to
307-
cascade or is not in the `"scopes"` of the policy.
306+
not be used for `file:///C:/app/bin/main.js` unless `"file:///C:/app/"` is set
307+
to cascade or is not in the `"scopes"` of the policy.
308308

309309
4. `"file:///"`
310310

311311
This determines the policy for all file based resources on the `localhost`. This
312312
is not in the `"scopes"` field of the policy and would be skipped. It would not
313-
be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to cascade
314-
or is not in the `"scopes"` of the policy.
313+
be used for `file:///C:/app/bin/main.js` unless `"file:///C:/"` is set to
314+
cascade or is not in the `"scopes"` of the policy.
315315

316316
5. `"file:"`
317317

0 commit comments

Comments
 (0)