There was an error while loading. Please reload this page.
const
1 parent e369c4e commit 1009dccCopy full SHA for 1009dcc
1 file changed
lib/saluki-metadata/src/lib.rs
@@ -72,10 +72,10 @@ macro_rules! declare_app_details {
72
};
73
}
74
75
-/// Parses a `u32` from a string in a const context.
+/// Parses a `u32` from a string in a `const` context.
76
///
77
/// Only intended for the version components that Cargo hands us, which are always plain decimal numbers. Any other
78
-/// character causes a compile-time error, and overflow panics like it would in any other const evaluation.
+/// character causes a compile-time error, and overflow panics like it would in any other `const` evaluation.
79
#[doc(hidden)]
80
pub const fn const_parse_u32(s: &str) -> u32 {
81
let bytes = s.as_bytes();
0 commit comments