]> git.lizzy.rs Git - rust.git/commitdiff
Fixed typo in comment
authorIkko Ashimine <eltociear@gmail.com>
Thu, 5 Nov 2020 03:08:32 +0000 (12:08 +0900)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 03:08:32 +0000 (12:08 +0900)
paramter -> parameter

compiler/rustc_middle/src/ty/mod.rs

index 0a7bec1a342f3661f4b3e7da2cb0c981a326fca6..aa5a696b09c3be9ad7fd21ceef38fbb2c37be13b 100644 (file)
@@ -1641,7 +1641,7 @@ fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHas
 #[derive(Hash, HashStable)]
 pub struct WithOptConstParam<T> {
     pub did: T,
-    /// The `DefId` of the corresponding generic paramter in case `did` is
+    /// The `DefId` of the corresponding generic parameter in case `did` is
     /// a const argument.
     ///
     /// Note that even if `did` is a const argument, this may still be `None`.