X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/e2374eed1c3ae8d0063138ea011e86bbd42473ab..46c141eefadadaf82b1414ae19d3766bbd4ba0cc:/src/part04.rs 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