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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue