Skip to content

Commit fb12480

Browse files
Fix incoherence
1 parent b21dce3 commit fb12480

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,18 +325,18 @@ uuid = "1.0"
325325
uuid = { git = 'https://github.com/rust-lang-nursery/uuid' }
326326
```
327327

328-
Remember that `[patch]` is only applicable at the *top level* so we consumers of
329-
`my-library` have to repeat the `[patch]` section if necessary. Here, though,
330-
the new `uuid` crate applies to *both* our dependency on `uuid` and the
331-
`my-library -> uuid` dependency. The `uuid` crate will be resolved to one
332-
version for this entire crate graph, 1.0.1, and it'll be pulled from the git
328+
Remember that `[patch]` is applicable *transitively* but can only be defined at
329+
the *top level* so we consumers of `my-library` have to repeat the `[patch]` section
330+
if necessary. Here, though, the new `uuid` crate applies to *both* our dependency on
331+
`uuid` and the `my-library -> uuid` dependency. The `uuid` crate will be resolved to
332+
one version for this entire crate graph, 1.0.1, and it'll be pulled from the git
333333
repository.
334334

335335
#### Overriding repository URL
336336

337337
In case the dependency you want to override isn't loaded from `crates.io`, you'll have to change a bit how you use `[patch]`:
338338

339-
```
339+
```toml
340340
[patch."https://github.com/your/repository"]
341341
my-library = { path = "../my-library/path" }
342342
```

0 commit comments

Comments
 (0)