@@ -40,7 +40,7 @@ use schnorr;
4040/// Basic usage:
4141///
4242/// ```
43- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
43+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
4444/// use secp256k1::{rand, Secp256k1, SecretKey};
4545///
4646/// let secp = Secp256k1::new();
@@ -134,7 +134,7 @@ impl SecretKey {
134134 /// # Examples
135135 ///
136136 /// ```
137- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
137+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
138138 /// use secp256k1::{rand, SecretKey};
139139 /// let secret_key = SecretKey::new(&mut rand::thread_rng());
140140 /// # }
@@ -190,7 +190,7 @@ impl SecretKey {
190190 /// # Examples
191191 ///
192192 /// ```
193- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
193+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
194194 /// use secp256k1::{rand, Secp256k1, SecretKey, KeyPair};
195195 ///
196196 /// let secp = Secp256k1::new();
@@ -342,7 +342,7 @@ impl PublicKey {
342342 /// # Examples
343343 ///
344344 /// ```
345- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
345+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
346346 /// use secp256k1::{rand, Secp256k1, SecretKey, PublicKey};
347347 ///
348348 /// let secp = Secp256k1::new();
@@ -396,7 +396,7 @@ impl PublicKey {
396396 /// # Examples
397397 ///
398398 /// ```
399- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
399+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
400400 /// use secp256k1::{rand, Secp256k1, PublicKey, KeyPair};
401401 ///
402402 /// let secp = Secp256k1::new();
@@ -553,7 +553,7 @@ impl PublicKey {
553553 /// # Examples
554554 ///
555555 /// ```
556- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
556+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
557557 /// use secp256k1::{rand, Secp256k1, PublicKey};
558558 ///
559559 /// let secp = Secp256k1::new();
@@ -669,7 +669,7 @@ impl Ord for PublicKey {
669669/// Basic usage:
670670///
671671/// ```
672- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
672+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
673673/// use secp256k1::{rand, KeyPair, Secp256k1};
674674///
675675/// let secp = Secp256k1::new();
@@ -775,7 +775,7 @@ impl KeyPair {
775775 /// # Examples
776776 ///
777777 /// ```
778- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
778+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
779779 /// use secp256k1::{rand, Secp256k1, SecretKey, KeyPair};
780780 ///
781781 /// let secp = Secp256k1::new();
@@ -829,7 +829,7 @@ impl KeyPair {
829829 /// # Examples
830830 ///
831831 /// ```
832- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
832+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
833833 /// use secp256k1::{Secp256k1, KeyPair};
834834 /// use secp256k1::rand::{RngCore, thread_rng};
835835 ///
@@ -961,7 +961,7 @@ impl<'de> ::serde::Deserialize<'de> for KeyPair {
961961/// Basic usage:
962962///
963963/// ```
964- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
964+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
965965/// use secp256k1::{rand, Secp256k1, KeyPair, XOnlyPublicKey};
966966///
967967/// let secp = Secp256k1::new();
@@ -1089,7 +1089,7 @@ impl XOnlyPublicKey {
10891089 /// # Examples
10901090 ///
10911091 /// ```
1092- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
1092+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
10931093 /// use secp256k1::{Secp256k1, KeyPair};
10941094 /// use secp256k1::rand::{RngCore, thread_rng};
10951095 ///
@@ -1154,7 +1154,7 @@ impl XOnlyPublicKey {
11541154 /// # Examples
11551155 ///
11561156 /// ```
1157- /// # #[cfg(all(feature = "rand- std", any( feature = "alloc", feature = " std") ))] {
1157+ /// # #[cfg(all(feature = "std", feature = "rand- std"))] {
11581158 /// use secp256k1::{Secp256k1, KeyPair};
11591159 /// use secp256k1::rand::{thread_rng, RngCore};
11601160 ///
0 commit comments