mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Fix comment copy/paste typo in newtype_index (#10892)
## Summary This comment looks wrongly copy-pasted from the comment above, and mentions the wrong type. ## Test Plan Comment-only change.
This commit is contained in:
parent
03899dcba3
commit
7ae15c6e0a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ pub(super) fn generate_newtype_index(item: ItemStruct) -> syn::Result<proc_macro
|
|||
self.0.get() - 1
|
||||
}
|
||||
|
||||
/// Returns the index as a `u32` value
|
||||
/// Returns the index as a `usize` value
|
||||
#[inline]
|
||||
#vis const fn as_usize(self) -> usize {
|
||||
self.as_u32() as usize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue