X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/e2374eed1c3ae8d0063138ea011e86bbd42473ab..f34c221547f429f23feedf3dc58344a9292c0e18:/src/part04.rs?ds=sidebyside diff --git a/src/part04.rs b/src/part04.rs index 0ecfe76..e4c6a59 100644 --- a/src/part04.rs +++ b/src/part04.rs @@ -129,7 +129,8 @@ fn mutable_borrow_demo() { // they do. However, the `v` in `mutable_borrow_demo` is not actually usable, it is not *active*: As long as there is an // outstanding borrow, Rust will not allow you to do anything with `v`. -// So, to summarize - the ownership and borrowing system of Rust enforces the following three rules: +// ## Summary +// The ownership and borrowing system of Rust enforces the following three rules: // // * There is always exactly one owner of a piece of data // * If there is an active mutable borrow, then nobody else can have active access to the data