about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/infer/canonical/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/infer/canonical/mod.rs b/src/librustc/infer/canonical/mod.rs
index 8a2332cee2e..85aa4f62f21 100644
--- a/src/librustc/infer/canonical/mod.rs
+++ b/src/librustc/infer/canonical/mod.rs
@@ -200,14 +200,14 @@ impl<'gcx, V> Canonical<'gcx, V> {
     ///
     /// An example of a **correct** use of this:
     ///
-    /// ```rust,ignore
+    /// ```rust,ignore (not real code)
     /// let a: Canonical<'_, T> = ...;
     /// let b: Canonical<'_, (T,)> = a.unchecked_map(|v| (v, ));
     /// ```
     ///
     /// An example of an **incorrect** use of this:
     ///
-    /// ```rust,ignore
+    /// ```rust,ignore (not real code)
     /// let a: Canonical<'tcx, T> = ...;
     /// let ty: Ty<'tcx> = ...;
     /// let b: Canonical<'tcx, (T, Ty<'tcx>)> = a.unchecked_map(|v| (v, ty));