Update comment on PrimTy::name_str

This commit is contained in:
Joshua Nelson 2021-04-22 23:19:46 -04:00
parent 7f4afdf025
commit 2b026782d8

View file

@ -2201,7 +2201,7 @@ impl PrimTy {
/// Like [`PrimTy::name`], but returns a &str instead of a symbol.
///
/// Used by rustdoc.
/// Used by clippy.
pub fn name_str(self) -> &'static str {
match self {
PrimTy::Int(i) => i.name_str(),