Skip to content

Commit

Permalink
Temporarily ignore an example because of a rustdoc bug
Browse files Browse the repository at this point in the history
Should be fixed in rust 1.35
  • Loading branch information
carols10cents committed Mar 10, 2019
1 parent fa6519e commit 98e4db3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ through the last time that reference is used. For instance, this code will
compile because the last usage of the immutable references occurs before the
mutable reference is introduced:

```rust,edition2018
<!-- This example is being ignored because there's a bug in rustdoc making the
edition2018 not work. The bug is currently fixed in nightly, so when we update
the book to >= 1.35, `ignore` can be removed from this example. -->

```rust,edition2018,ignore
let mut s = String::from("hello");
let r1 = &s; // no problem
Expand Down

0 comments on commit 98e4db3

Please sign in to comment.