about summary refs log tree commit diff
path: root/src/libstd/unstable/finally.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/unstable/finally.rs')
-rw-r--r--src/libstd/unstable/finally.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/unstable/finally.rs b/src/libstd/unstable/finally.rs
index 82119ad21b9..c98ef880c10 100644
--- a/src/libstd/unstable/finally.rs
+++ b/src/libstd/unstable/finally.rs
@@ -21,12 +21,11 @@ also be used. See that function for more details.
 
 ```
 use std::unstable::finally::Finally;
-# fn always_run_this() {}
 
 (|| {
     // ...
 }).finally(|| {
-    always_run_this();
+    // this code is always run
 })
 ```
 */
@@ -158,4 +157,3 @@ fn test_compact() {
     do_some_fallible_work.finally(
         but_always_run_this_function);
 }
-