libcore: fix fallout in doc tests

This commit is contained in:
Jorge Aparicio 2014-12-05 11:55:36 -05:00
parent 950fbf4e10
commit 0b0c3e1d96

View File

@ -19,13 +19,17 @@
//! # Example
//!
//! ```
//! # #![feature(unboxed_closures)]
//!
//! use std::finally::Finally;
//!
//! (|| {
//! # fn main() {
//! (|&mut:| {
//! // ...
//! }).finally(|| {
//! // this code is always run
//! })
//! # }
//! ```
#![experimental]