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:
Carl Meyer 2024-04-11 18:43:52 -06:00 committed by GitHub
parent 03899dcba3
commit 7ae15c6e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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