about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorHavvy <ryan.havvy@gmail.com>2018-06-11 02:44:55 -0700
committerHavvy <ryan.havvy@gmail.com>2018-06-11 02:44:55 -0700
commit2d7b046d710ef92d69f25aeae0d6a508b97122ef (patch)
tree66057a76bba1831ddb097f72089ee02be2185f49 /src/libsyntax
parentf7df1f38dd2a52709cd83aeb6d6714215fe046bc (diff)
downloadrust-2d7b046d710ef92d69f25aeae0d6a508b97122ef.tar.gz
rust-2d7b046d710ef92d69f25aeae0d6a508b97122ef.zip
Fix typos in previous commit
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic_list.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs
index 35e2b701791..34a6e470ccd 100644
--- a/src/libsyntax/diagnostic_list.rs
+++ b/src/libsyntax/diagnostic_list.rs
@@ -104,11 +104,12 @@ Erroneous code example:
     reason="Example invalid meta item. Should be 'note'") // error: unknown meta item
 ]
 fn deprecated_function() {}
+```
 
 Meta items are the key/value pairs inside of an attribute. The keys provided must be one of the
 valid keys for the specified attribute.
 
-To fix the problem, either remove the unknown meta item, or rename it it you provided the wrong
+To fix the problem, either remove the unknown meta item, or rename it if you provided the wrong
 name.
 
 In the erroneous code example above, the wrong name was provided, so changing it to the right name
@@ -120,6 +121,7 @@ fixes the error.
     note="This is a valid meta item for the deprecated attribute."
 )]
 fn deprecated_function() {}
+```
 "##,
 
 E0552: r##"