about summary refs log tree commit diff
path: root/src/librustc_error_codes
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-06 12:13:55 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-03-06 15:19:31 +0100
commit136ad015b6862274bf8c161dc5d2955409ed1465 (patch)
tree44213c111b970f7f07b47611a2287e986a7f7a24 /src/librustc_error_codes
parent865b44a3e330f3ef8be0f6edf69896c9ed957ac0 (diff)
downloadrust-136ad015b6862274bf8c161dc5d2955409ed1465.tar.gz
rust-136ad015b6862274bf8c161dc5d2955409ed1465.zip
fix various typos
Diffstat (limited to 'src/librustc_error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0326.md2
-rw-r--r--src/librustc_error_codes/error_codes/E0591.md2
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>) {}