Skip to content

Commit

Permalink
Rollup merge of rust-lang#118669 - klensy:comment-fix, r=workingjubilee
Browse files Browse the repository at this point in the history
library: fix comment about const assert in win api

Resolves [comment ](rust-lang#116816 (comment))

r? `@workingjubilee`
  • Loading branch information
matthiaskrgr authored Dec 6, 2023
2 parents 95efc0d + 7ff9648 commit 2f71a44
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 2f71a44

Please sign in to comment.