]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 2 Oct 2018 08:56:27 +0000 (10:56 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Wed, 3 Oct 2018 08:07:05 +0000 (10:07 +0200)
src/librustc/ty/constness.rs

index 5b13af40a4b53d10ff9ff9ec9b2e20abf1f847bb..64e677fbe1261230356f025ac6434a6383d96bf1 100644 (file)
@@ -20,7 +20,7 @@ pub fn is_const_fn(self, def_id: DefId) -> bool {
                     .iter()
                     .any(|&(sym, _)| sym == feature_name),
                 // the function has no stability attribute, it is stable as const fn or the user
-                // nees to use feature gates to use the function at all
+                // needs to use feature gates to use the function at all
                 None => true,
             },
             // functions without stability are either stable user written const fn or the user is