Skip to content

Commit

Permalink
library: fix comment about const assert in win api
Browse files Browse the repository at this point in the history
  • Loading branch information
klensy committed Dec 6, 2023
1 parent 17a520a commit 7ff9648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use super::c;
/// converted to a `u32`. Clippy would warn about this but, alas, it's not run
/// on the standard library.
const fn win32_size_of<T: Sized>() -> u32 {
// Const assert that the size is less than u32::MAX.
// Const assert that the size does not exceed u32::MAX.
// Uses a trait to workaround restriction on using generic types in inner items.
trait Win32SizeOf: Sized {
const WIN32_SIZE_OF: u32 = {
Expand Down

0 comments on commit 7ff9648

Please sign in to comment.