about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-17 18:09:10 +0000
committerbors <bors@rust-lang.org>2015-06-17 18:09:10 +0000
commit37cc79f81c62cbdf609e2760215725ecf76323c7 (patch)
tree00816d82a1f0f82115bafc8ee397f5a4d5e07242 /src
parent6065bed37be55427ed0ac888b863a85696b28f9b (diff)
parent3db26db24a14200351978b5248bf4148533673fd (diff)
downloadrust-37cc79f81c62cbdf609e2760215725ecf76323c7.tar.gz
rust-37cc79f81c62cbdf609e2760215725ecf76323c7.zip
Auto merge of #26315 - steveklabnik:gh26287, r=alexcrichton
The font can make this hard to read, and we don't even strictly need
the annotation, so let's just remove it

Fixes #26287
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/traits.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md
index 07da32c34be..687e2bbf00e 100644
--- a/src/doc/trpl/traits.md
+++ b/src/doc/trpl/traits.md
@@ -332,7 +332,7 @@ fn normal<T: ConvertTo<i64>>(x: &T) -> i64 {
 fn inverse<T>() -> T
         // this is using ConvertTo as if it were "ConvertFrom<i32>"
         where i32: ConvertTo<T> {
-    1i32.convert()
+    42.convert()
 }
 ```