libcore: fix fallout in doc tests
This commit is contained in:
parent
950fbf4e10
commit
0b0c3e1d96
@ -19,13 +19,17 @@
|
||||
//! # Example
|
||||
//!
|
||||
//! ```
|
||||
//! # #![feature(unboxed_closures)]
|
||||
//!
|
||||
//! use std::finally::Finally;
|
||||
//!
|
||||
//! (|| {
|
||||
//! # fn main() {
|
||||
//! (|&mut:| {
|
||||
//! // ...
|
||||
//! }).finally(|| {
|
||||
//! // this code is always run
|
||||
//! })
|
||||
//! # }
|
||||
//! ```
|
||||
|
||||
#![experimental]
|
||||
|
Loading…
Reference in New Issue
Block a user