diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-06 17:22:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-06 17:22:00 +0100 |
| commit | 2f71a448c0c7566f77d4ffaaf056581fab6748ea (patch) | |
| tree | 167d9d2faffbc259ee17b772f3571531565ee0ea | |
| parent | 95efc0d6e6ec8c0f026e77b1791f4abf9c29ee3b (diff) | |
| parent | 7ff9648808921746dcd08c050c7ff8918c3551b9 (diff) | |
| download | rust-2f71a448c0c7566f77d4ffaaf056581fab6748ea.tar.gz rust-2f71a448c0c7566f77d4ffaaf056581fab6748ea.zip | |
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`
| -rw-r--r-- | library/std/src/sys/windows/api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/api.rs b/library/std/src/sys/windows/api.rs index 72ecb950341..a7ea59e85f7 100644 --- a/library/std/src/sys/windows/api.rs +++ b/library/std/src/sys/windows/api.rs @@ -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 = { |
