Update comment on PrimTy::name_str
This commit is contained in:
parent
7f4afdf025
commit
2b026782d8
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user