Skip to content

Commit a56faa8

Browse files
committed
Use correct flag name
The flag name is +rdrand not +rdrnd Signed-off-by: Joe Richey <[email protected]>
1 parent 9ceb7e5 commit a56faa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rdrand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
4545
Err(Error::FAILED_RDRAND)
4646
}
4747

48-
// "rdrand" target feature requires "+rdrnd" flag, see https://github.com/rust-lang/rust/issues/49653.
48+
// "rdrand" target feature requires "+rdrand" flag, see https://github.com/rust-lang/rust/issues/49653.
4949
#[cfg(all(target_env = "sgx", not(target_feature = "rdrand")))]
5050
compile_error!(
51-
"SGX targets require 'rdrand' target feature. Enable by using -C target-feature=+rdrnd."
51+
"SGX targets require 'rdrand' target feature. Enable by using -C target-feature=+rdrand."
5252
);
5353

5454
#[cfg(target_feature = "rdrand")]

0 commit comments

Comments
 (0)