]> git.lizzy.rs Git - rust.git/commit
Fix some mistakes in HRTB docs
authorMatt Brubeck <mbrubeck@limpet.net>
Tue, 18 Oct 2016 17:56:12 +0000 (10:56 -0700)
committerMatt Brubeck <mbrubeck@limpet.net>
Tue, 18 Oct 2016 17:56:12 +0000 (10:56 -0700)
commitf89ba5da4a7f9a6446b91cb621ed000d28529d82
treeaea72659bdc3a7c3f5e3218a32504b399c11c682
parent2c2552b712386dd01a9d620aff960b98cddb4098
Fix some mistakes in HRTB docs

The example code for higher-ranked trait bounds on closures had an
unnecessary `mut` which was confusing, and the text referred to an
mutable reference which does not exist in the code (and isn't needed).
Removed the `mut`s and fixed the text to better describe the actual
error for the failing example.
src/doc/book/closures.md