diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-15 12:42:07 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-15 12:42:07 -0400 |
| commit | 3db26db24a14200351978b5248bf4148533673fd (patch) | |
| tree | ea46beeed7bcc6eaf11a81eb2b6d5b4f003dc2b5 /src/doc/trpl | |
| parent | 0d82fb55dbb9b28798ea7c2004fa91fe3ae23b86 (diff) | |
| download | rust-3db26db24a14200351978b5248bf4148533673fd.tar.gz rust-3db26db24a14200351978b5248bf4148533673fd.zip | |
remove confusing 1i32
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/doc/trpl')
| -rw-r--r-- | src/doc/trpl/traits.md | 2 |
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() } ``` |
