diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-07 17:27:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-07 17:27:32 +0100 |
| commit | 10f999b72d24fa181a3ec54fd21807b6a664e615 (patch) | |
| tree | 17a54913e18979912f3e0297f61acaa193ba24e6 /src/librustc_error_codes/error_codes | |
| parent | e6d4996a436497a0344eaba80615e3643389b89b (diff) | |
| parent | 4c2b0f1631f40f7dce7292b3b3b4e2a752b82f7f (diff) | |
| download | rust-10f999b72d24fa181a3ec54fd21807b6a664e615.tar.gz rust-10f999b72d24fa181a3ec54fd21807b6a664e615.zip | |
Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkov
fix various typos
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0326.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0591.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0326.md b/src/librustc_error_codes/error_codes/E0326.md index 3d357819c7f..bc522e9cf40 100644 --- a/src/librustc_error_codes/error_codes/E0326.md +++ b/src/librustc_error_codes/error_codes/E0326.md @@ -1,4 +1,4 @@ -An implementation of a trait doesn't match the type contraint. +An implementation of a trait doesn't match the type constraint. Erroneous code example: diff --git a/src/librustc_error_codes/error_codes/E0591.md b/src/librustc_error_codes/error_codes/E0591.md index 782d4cf29c3..7f68815b1c2 100644 --- a/src/librustc_error_codes/error_codes/E0591.md +++ b/src/librustc_error_codes/error_codes/E0591.md @@ -54,7 +54,7 @@ This pattern should be rewritten. There are a few possible ways to do this: - change the original fn declaration to match the expected signature, and do the cast in the fn body (the preferred option) -- cast the fn item fo a fn pointer before calling transmute, as shown here: +- cast the fn item of a fn pointer before calling transmute, as shown here: ``` # extern "C" fn foo(_: Box<i32>) {} |
