Fix incoherence
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 9 Dec 2017 15:34:48 +0000 (16:34 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 8 Jan 2018 21:04:59 +0000 (22:04 +0100)
src/doc/src/reference/specifying-dependencies.md

index 7fb0225d8c576b793aef4537bcc6d0e8f1043224..fd94f611220f820d93489b834ae46e4e14188af9 100644 (file)
@@ -325,18 +325,18 @@ uuid = "1.0"
 uuid = { git = 'https://github.com/rust-lang-nursery/uuid' }
 ```
 
-Remember that `[patch]` is only applicable at the *top level* so we consumers of
-`my-library` have to repeat the `[patch]` section if necessary. Here, though,
-the new `uuid` crate applies to *both* our dependency on `uuid` and the
-`my-library -> uuid` dependency. The `uuid` crate will be resolved to one
-version for this entire crate graph, 1.0.1, and it'll be pulled from the git
+Remember that `[patch]` is applicable *transitively* but can only be defined at
+the *top level* so we consumers of `my-library` have to repeat the `[patch]` section
+if necessary. Here, though, the new `uuid` crate applies to *both* our dependency on
+`uuid` and the `my-library -> uuid` dependency. The `uuid` crate will be resolved to
+one version for this entire crate graph, 1.0.1, and it'll be pulled from the git
 repository.
 
 #### Overriding repository URL
 
 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]`:
 
-```
+```toml
 [patch."https://github.com/your/repository"]
 my-library = { path = "../my-library/path" }
 ```