Skip to content

Commit 24b6633

Browse files
committed
Fix typo
1 parent 01af120 commit 24b6633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_data_structures/indexed_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ macro_rules! newtype_index {
150150
self.as_usize()
151151
}
152152

153-
/// Extract value of this index as a usize.
153+
/// Extract value of this index as a u32.
154154
#[inline]
155155
$v fn as_u32(self) -> u32 {
156156
self.private
157157
}
158158

159-
/// Extract value of this index as a u32.
159+
/// Extract value of this index as a usize.
160160
#[inline]
161161
$v fn as_usize(self) -> usize {
162162
self.as_u32() as usize

0 commit comments

Comments
 (0)