diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 77a87fdf1c6f..41eb1eed4e46 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -82,12 +82,14 @@ /// #![feature(convert_id)] /// use std::convert::id; /// -/// // Let's pretend we have an interesting condition: -/// let condition = true; +/// # let condition = true; +/// +/// # fn manipulation(x: u32) -> u32 { x + 1 } /// /// let do_stuff = if condition { manipulation } else { id }; /// /// // do more interesting stuff.. +/// /// let _results = do_stuff(42); /// ``` ///