mirror of
https://github.com/openharmony/third_party_rust_static-assertions-rs.git
synced 2026-07-20 01:04:23 -04:00
Change wording in const_assert_eq doc
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@
|
||||
//! const TWO: usize = 2;
|
||||
//! const_assert_eq!(two; TWO * TWO, TWO + TWO, 4);
|
||||
//!
|
||||
//! // Produces a compilation failure:
|
||||
//! // Fails to compile (same label):
|
||||
//! // const_assert_eq!(two; TWO, TWO);
|
||||
//!
|
||||
//! fn main() {
|
||||
|
||||
Reference in New Issue
Block a user