You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/format/mdbook.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -230,7 +230,7 @@ Rustdoc will use the complete example when you run `mdbook test`.
230
230
231
231
For example, consider a file named `file.rs` that contains this Rust program:
232
232
233
-
```rust
233
+
```rust,editable
234
234
fn main() {
235
235
let x = add_one(2);
236
236
assert_eq!(x, 3);
@@ -320,8 +320,8 @@ To configure this:
320
320
321
321
1. Create a ***Cargo.toml*** file with a `[package.dependencies]` section that defines a dependency for each `<crate>` you want to use in any sample. If your book is already embedded in an existing Cargo project, you may be able to use the existing project `Cargo.toml`.
322
322
2. In your ***book.toml***:
323
-
* configure the path to ***Cargo.toml** in `rust.manifest`, as described in [rust configuration](/format/configuration/general.html#rust-options).
324
-
* remove `rust.edition` if it is configured. The edition of rust compiler will be as specified in the ***Cargo.toml***.
323
+
* configure the path to ***Cargo.toml*** in `rust.manifest`, as described in [rust configuration](/format/configuration/general.html#rust-options).
324
+
* remove `rust.edition` if it is configured. The default rust edition will be as specified in the ***Cargo.toml*** (though this can be overridden for a specific code block).
325
325
* Refrain from invoking `mdbook test` with `-L` or `--library-path` argument. This, too, will be inferred from cargo project configuration
0 commit comments