]> git.lizzy.rs Git - rust.git/commit
Improve docs for mem::forget()
authorSteve Klabnik <steve@steveklabnik.com>
Tue, 4 Aug 2015 19:57:54 +0000 (15:57 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 4 Aug 2015 20:45:32 +0000 (16:45 -0400)
commit5af1b3f3a3361abf79573295b0847d8fecf782aa
tree79c1f43d62bd5808f05b8fbc7868d294f74af869
parentc980aba9a88704717229da3c1ec02685333c0db2
Improve docs for mem::forget()

We were burying the reason to use this function below a bunch of caveats about
its usage. That's backwards. Why a function should be used belongs at the top of
the docs, not the bottom.

Also, add some extra links to related functions mentioned in the body.
src/libcore/mem.rs