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