]> git.lizzy.rs Git - rust.git/commitdiff
forgot about the feature flag in the doctest
authorleocth <leocth31@gmail.com>
Sun, 26 Jun 2022 02:48:17 +0000 (10:48 +0800)
committerleocth <leocth31@gmail.com>
Sun, 26 Jun 2022 02:49:05 +0000 (10:49 +0800)
library/core/src/sync/atomic.rs

index 92afdab299948a2cea0b1ac54725f7d97eb6f430..b974b431b780d30f075b4e80a5c967a48586d8d0 100644 (file)
@@ -872,6 +872,7 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool {
     /// # Examples
     ///
     /// ```
+    /// #![feature(atomic_bool_fetch_not)]
     /// use std::sync::atomic::{AtomicBool, Ordering};
     ///
     /// let foo = AtomicBool::new(true);