typo fix in the code

This commit is contained in:
Guanqun Lu 2019-10-02 12:09:30 +08:00
parent 51482d0b75
commit 11c2d43485

View File

@ -1778,7 +1778,7 @@ impl<'tcx> TyS<'tcx> {
/// Returns `true` if this type is a `str`.
#[inline]
pub fn is_str(&self) -> bool { self.sty == Str }
pub fn is_str(&self) -> bool { self.kind == Str }
#[inline]
pub fn is_param(&self, index: u32) -> bool {