Skip to content

Commit 0b0c3e1

Browse files
author
Jorge Aparicio
committed
libcore: fix fallout in doc tests
1 parent 950fbf4 commit 0b0c3e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libcore/finally.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
//! # Example
2020
//!
2121
//! ```
22+
//! # #![feature(unboxed_closures)]
23+
//!
2224
//! use std::finally::Finally;
2325
//!
24-
//! (|| {
26+
//! # fn main() {
27+
//! (|&mut:| {
2528
//! // ...
2629
//! }).finally(|| {
2730
//! // this code is always run
2831
//! })
32+
//! # }
2933
//! ```
3034
3135
#![experimental]

0 commit comments

Comments
 (0)