diff --git a/src/librustc/ty/inhabitedness/mod.rs b/src/librustc/ty/inhabitedness/mod.rs index 1cc31b20ba95..c5b75839e99b 100644 --- a/src/librustc/ty/inhabitedness/mod.rs +++ b/src/librustc/ty/inhabitedness/mod.rs @@ -53,7 +53,7 @@ mod def_id_forest; // // We need this information for pattern-matching on Foo or types that contain // Foo. -// +// // # Example // ```rust // let foo_result: Result = ... ; diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index 319b11d8031e..81b0a55841ad 100644 --- a/src/librustc/ty/sty.rs +++ b/src/librustc/ty/sty.rs @@ -1007,7 +1007,7 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> { /// In this code, the type `Foo` will only be visibly uninhabited inside the /// modules b, c and d. This effects pattern-matching on `Foo` or types that /// contain `Foo`. - /// + /// /// # Example /// ```rust /// let foo_result: Result = ... ;