Add a `[dev-dependencies]` example
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Tue, 17 May 2016 22:33:27 +0000 (18:33 -0400)
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Tue, 17 May 2016 22:41:23 +0000 (18:41 -0400)
src/doc/specifying-dependencies.md

index bfa92e9e69040943d10cd972d17c3315fa2443c6..ac121c7141f5983f74a338af44543c6eddbf2a9e 100644 (file)
@@ -286,7 +286,14 @@ native = { path = "native/x86_64" }
 # Development dependencies
 
 You can add a `[dev-dependencies]` section to your `Cargo.toml` whose format
-is equivalent to `[dependencies]`. Dev-dependencies are not used when compiling
+is equivalent to `[dependencies]`:
+
+```toml
+[dev-dependencies]
+tempdir = "0.3"
+```
+
+Dev-dependencies are not used when compiling
 a package for building, but are used for compiling tests, examples, and
 benchmarks.