Skip to content

Commit a05e947

Browse files
committed
library: fix comment about const assert in win api
1 parent 17a520a commit a05e947

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use super::c;
4848
/// converted to a `u32`. Clippy would warn about this but, alas, it's not run
4949
/// on the standard library.
5050
const fn win32_size_of<T: Sized>() -> u32 {
51-
// Const assert that the size is less than u32::MAX.
51+
// Const assert that the size is not exceed u32::MAX.
5252
// Uses a trait to workaround restriction on using generic types in inner items.
5353
trait Win32SizeOf: Sized {
5454
const WIN32_SIZE_OF: u32 = {

0 commit comments

Comments
 (0)