mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Audit integer types in finally.
This commit is contained in:
@@ -72,7 +72,7 @@ fn finally<G>(&mut self, mut dtor: G) -> T where G: FnMut() {
|
||||
/// ```
|
||||
/// use std::finally::try_finally;
|
||||
///
|
||||
/// struct State<'a> { buffer: &'a mut [u8], len: uint }
|
||||
/// struct State<'a> { buffer: &'a mut [u8], len: usize }
|
||||
/// # let mut buf = [];
|
||||
/// let mut state = State { buffer: &mut buf, len: 0 };
|
||||
/// try_finally(
|
||||
|
||||
Reference in New Issue
Block a user