From 4004493f8af4ef94927f23154a86a4c936a0eec8 Mon Sep 17 00:00:00 2001 From: Virgile Andreani Date: Sun, 26 Jan 2014 13:39:39 +0100 Subject: [PATCH] Unhide lines in rustdoc's doc -- Closes #11645 --- doc/rustdoc.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/rustdoc.md b/doc/rustdoc.md index ea87077b1196b..72282030fb322 100644 --- a/doc/rustdoc.md +++ b/doc/rustdoc.md @@ -139,9 +139,14 @@ that one can still write things like `#[deriving(Eq)]`). ~~~ ```rust -# // showing 'fib' in this documentation would just be tedious and detracts from -# // what's actualy being documented. -# fn fib(n: int) { n + 2 } +# /!\ The three following lines are comments, which are usually stripped off by +# the doc-generating tool. In order to display them anyway in this particular +# case, the character following the leading '#' is not a usual space like in +# these first five lines but a non breakable one. +# +# // showing 'fib' in this documentation would just be tedious and detracts from +# // what's actualy being documented. +# fn fib(n: int) { n + 2 } do spawn { fib(200); } ```