Skip to content

Commit a9c23dd

Browse files
authored
Auto merge of #3286 - rjgoldsborough:build-script-docs-mistake-336, r=alexcrichton
fixing build script docs mistakes Fixes rust-lang/crates.io#336
2 parents 8b5aec1 + 579fee3 commit a9c23dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/doc/build-script.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ crate is built:
8181
out in crates.io crates are not emitted by default.
8282

8383
Any other element is a user-defined metadata that will be passed to
84-
dependencies. More information about this can be found in the [`links`][links]
84+
dependents. More information about this can be found in the [`links`][links]
8585
section.
8686

8787
[links]: #the-links-manifest-key
@@ -252,9 +252,7 @@ This is where the real magic happens. The library is using the rustc-defined
252252
the generated file (`hello.rs`) into the crate’s compilation.
253253

254254
Using the structure shown here, crates can include any number of generated files
255-
from the build script itself. We’ve also seen a brief example of how a build
256-
script can use a crate as a dependency purely for the build process and not for
257-
the crate itself at runtime.
255+
from the build script itself.
258256

259257
# Case study: Building some native code
260258

@@ -400,6 +398,9 @@ And there we go! This should complete our example of building some C code from a
400398
Cargo package using the build script itself. This also shows why using a build
401399
dependency can be crucial in many situations and even much more concise!
402400

401+
We’ve also seen a brief example of how a build script can use a crate as a
402+
dependency purely for the build process and not for the crate itself at runtime.
403+
403404
# Case study: Linking to system libraries
404405

405406
The final case study here will be investigating how a Cargo library links to a

0 commit comments

Comments
 (0)