Skip to content

Commit 804b6ee

Browse files
committed
update examples using *
1 parent 8e5a9ad commit 804b6ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

text/0000-crates-io-token-scopes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ owned by the user, or it can contain the comma-separated list of crate names
6969
the token can interact with. Crate names can contain `*` to match zero or more
7070
characters.
7171

72-
For example, a crates scope of `serde,serde-*` allows the token to act on the
73-
`serde` crate or any present or future crates starting with `serde-`, if the
74-
user is an owner of those crates.
72+
For example, a crates scope of `lazy_static,serde*` allows the token to act on
73+
the `lazy_static` crate or any present or future crates starting with `serde`
74+
(including `serde` itself), if the user is an owner of those crates.
7575

7676
The crates scope will allow access to all present and future crates matching
7777
it. When an endpoint that doesn't interact with crates is called by a token
@@ -122,13 +122,13 @@ following these rules:
122122
As an example, the following pattern:
123123

124124
```
125-
foo,foo-*
125+
foo,bar-*
126126
```
127127

128128
... is desugared into the following regex:
129129

130130
```
131-
^foo|foo\-.+$
131+
^foo|bar\-.*$
132132
```
133133

134134
Any combination of those characters is allowed, but crates.io might define a

0 commit comments

Comments
 (0)