Skip to content

Commit 98e4db3

Browse files
committedMar 10, 2019
Temporarily ignore an example because of a rustdoc bug
Should be fixed in rust 1.35
1 parent fa6519e commit 98e4db3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/ch04-02-references-and-borrowing.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ through the last time that reference is used. For instance, this code will
234234
compile because the last usage of the immutable references occurs before the
235235
mutable reference is introduced:
236236

237-
```rust,edition2018
237+
<!-- This example is being ignored because there's a bug in rustdoc making the
238+
edition2018 not work. The bug is currently fixed in nightly, so when we update
239+
the book to >= 1.35, `ignore` can be removed from this example. -->
240+
241+
```rust,edition2018,ignore
238242
let mut s = String::from("hello");
239243
240244
let r1 = &s; // no problem

0 commit comments

Comments
 (0)
Please sign in to comment.