Skip to content

Commit

Permalink
Fix comment copy/paste typo in newtype_index (#10892)
Browse files Browse the repository at this point in the history
## Summary

This comment looks wrongly copy-pasted from the comment above, and
mentions the wrong type.

## Test Plan

Comment-only change.
  • Loading branch information
carljm authored Apr 12, 2024
1 parent 03899dc commit 7ae15c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_macros/src/newtype_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ae15c6

Please sign in to comment.