mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
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:
commit
2f71a448c0
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user