Skip to content

Commit

Permalink
Unrolled build for rust-lang#118669
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#118669 - klensy:comment-fix, r=workingjubilee

library: fix comment about const assert in win api

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

r? `@workingjubilee`
  • Loading branch information
rust-timer authored Dec 6, 2023
2 parents f32d298 + 7ff9648 commit 3c0f472
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 3c0f472

Please sign in to comment.