Skip to content

Commit

Permalink
typo fix in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanqun Lu committed Oct 2, 2019
1 parent 51482d0 commit 11c2d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 11c2d43

Please sign in to comment.