Skip to content

Commit d159f26

Browse files
authored
silly hackmd, that = sign is annoying
1 parent 10e3e51 commit d159f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2022-06-10-nll-by-default.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Jack's blog post includes a [detailed narrative](https://jackh726.github.io/rust
3232

3333
The next frontier for Rust borrow checking is taking the [polonius](https://github.com/rust-lang/polonius) project and moving it from research experiment to production code. Polonius is a next-generation version of the borrow checker that was "spun off" from the main NLL effort in 2018, as we were getting NLL ready to ship in production. Its most important contribution is fixing a known limitation of the borrow checker, demonstrated by the following example:
3434

35-
```rust=
35+
```rust
3636
fn last_or_push<'a>(vec: &'a mut Vec<String>) -> &'a String {
3737
if let Some(s) = vec.last() { // borrows vec
3838
// returning s here forces vec to be borrowed

0 commit comments

Comments
 (0)