Rollup merge of #118669 - klensy:comment-fix, r=workingjubilee

library: fix comment about const assert in win api

Resolves [comment ](https://github.com/rust-lang/rust/pull/116816#discussion_r1415869524)

r? `@workingjubilee`
This commit is contained in:
Matthias Krüger
2023-12-06 17:22:00 +01:00
committed by GitHub
+1 -1
View File
@@ -48,7 +48,7 @@
/// 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 = {