Skip to content

Commit 11c2d43

Browse files
author
Guanqun Lu
committed
typo fix in the code
1 parent 51482d0 commit 11c2d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ impl<'tcx> TyS<'tcx> {
17781778

17791779
/// Returns `true` if this type is a `str`.
17801780
#[inline]
1781-
pub fn is_str(&self) -> bool { self.sty == Str }
1781+
pub fn is_str(&self) -> bool { self.kind == Str }
17821782

17831783
#[inline]
17841784
pub fn is_param(&self, index: u32) -> bool {

0 commit comments

Comments
 (0)