Skip to content

Commit 768470b

Browse files
Fix mistake in atomic comparaison docs
1 parent 842448d commit 768470b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/libcore/intrinsics.rs

+19-19
Original file line numberDiff line numberDiff line change
@@ -612,31 +612,31 @@ extern "rust-intrinsic" {
612612
/// [`AtomicBool::fetch_xor`](../../std/sync/atomic/struct.AtomicBool.html#method.fetch_xor).
613613
pub fn atomic_xor_relaxed<T>(dst: *mut T, src: T) -> T;
614614

615-
/// Maximum with the current value using a sized comparison.
615+
/// Maximum with the current value using a signed comparison.
616616
///
617617
/// The stabilized version of this intrinsic is available on the
618618
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
619619
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
620620
/// as the `order`. For example,
621621
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
622622
pub fn atomic_max<T>(dst: *mut T, src: T) -> T;
623-
/// Maximum with the current value using a sized comparison.
623+
/// Maximum with the current value using a signed comparison.
624624
///
625625
/// The stabilized version of this intrinsic is available on the
626626
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
627627
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
628628
/// as the `order`. For example,
629629
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
630630
pub fn atomic_max_acq<T>(dst: *mut T, src: T) -> T;
631-
/// Maximum with the current value using a sized comparison.
631+
/// Maximum with the current value using a signed comparison.
632632
///
633633
/// The stabilized version of this intrinsic is available on the
634634
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
635635
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
636636
/// as the `order`. For example,
637637
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
638638
pub fn atomic_max_rel<T>(dst: *mut T, src: T) -> T;
639-
/// Maximum with the current value using a sized comparison.
639+
/// Maximum with the current value using a signed comparison.
640640
///
641641
/// The stabilized version of this intrinsic is available on the
642642
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
@@ -653,39 +653,39 @@ extern "rust-intrinsic" {
653653
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
654654
pub fn atomic_max_relaxed<T>(dst: *mut T, src: T) -> T;
655655

656-
/// Minimum with the current value using a sized comparison.
656+
/// Minimum with the current value using a signed comparison.
657657
///
658658
/// The stabilized version of this intrinsic is available on the
659659
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
660660
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
661661
/// as the `order`. For example,
662662
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
663663
pub fn atomic_min<T>(dst: *mut T, src: T) -> T;
664-
/// Minimum with the current value using a sized comparison.
664+
/// Minimum with the current value using a signed comparison.
665665
///
666666
/// The stabilized version of this intrinsic is available on the
667667
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
668668
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
669669
/// as the `order`. For example,
670670
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
671671
pub fn atomic_min_acq<T>(dst: *mut T, src: T) -> T;
672-
/// Minimum with the current value using a sized comparison.
672+
/// Minimum with the current value using a signed comparison.
673673
///
674674
/// The stabilized version of this intrinsic is available on the
675675
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
676676
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
677677
/// as the `order`. For example,
678678
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
679679
pub fn atomic_min_rel<T>(dst: *mut T, src: T) -> T;
680-
/// Minimum with the current value using a sized comparison.
680+
/// Minimum with the current value using a signed comparison.
681681
///
682682
/// The stabilized version of this intrinsic is available on the
683683
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
684684
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
685685
/// as the `order`. For example,
686686
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
687687
pub fn atomic_min_acqrel<T>(dst: *mut T, src: T) -> T;
688-
/// Minimum with the current value using a sized comparison.
688+
/// Minimum with the current value using a signed comparison.
689689
///
690690
/// The stabilized version of this intrinsic is available on the
691691
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
@@ -694,39 +694,39 @@ extern "rust-intrinsic" {
694694
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
695695
pub fn atomic_min_relaxed<T>(dst: *mut T, src: T) -> T;
696696

697-
/// Minimum with the current value using an unsized comparison.
697+
/// Minimum with the current value using an unsigned comparison.
698698
///
699699
/// The stabilized version of this intrinsic is available on the
700700
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
701701
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
702702
/// as the `order`. For example,
703703
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
704704
pub fn atomic_umin<T>(dst: *mut T, src: T) -> T;
705-
/// Minimum with the current value using an unsized comparison.
705+
/// Minimum with the current value using an unsigned comparison.
706706
///
707707
/// The stabilized version of this intrinsic is available on the
708708
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
709709
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
710710
/// as the `order`. For example,
711711
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
712712
pub fn atomic_umin_acq<T>(dst: *mut T, src: T) -> T;
713-
/// Minimum with the current value using an unsized comparison.
713+
/// Minimum with the current value using an unsigned comparison.
714714
///
715715
/// The stabilized version of this intrinsic is available on the
716716
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
717717
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
718718
/// as the `order`. For example,
719719
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
720720
pub fn atomic_umin_rel<T>(dst: *mut T, src: T) -> T;
721-
/// Minimum with the current value using an unsized comparison.
721+
/// Minimum with the current value using an unsigned comparison.
722722
///
723723
/// The stabilized version of this intrinsic is available on the
724724
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
725725
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
726726
/// as the `order`. For example,
727727
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
728728
pub fn atomic_umin_acqrel<T>(dst: *mut T, src: T) -> T;
729-
/// Minimum with the current value using an unsized comparison.
729+
/// Minimum with the current value using an unsigned comparison.
730730
///
731731
/// The stabilized version of this intrinsic is available on the
732732
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
@@ -735,39 +735,39 @@ extern "rust-intrinsic" {
735735
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
736736
pub fn atomic_umin_relaxed<T>(dst: *mut T, src: T) -> T;
737737

738-
/// Maximum with the current value using an unsized comparison.
738+
/// Maximum with the current value using an unsigned comparison.
739739
///
740740
/// The stabilized version of this intrinsic is available on the
741741
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
742742
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
743743
/// as the `order`. For example,
744744
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
745745
pub fn atomic_umax<T>(dst: *mut T, src: T) -> T;
746-
/// Maximum with the current value using an unsized comparison.
746+
/// Maximum with the current value using an unsigned comparison.
747747
///
748748
/// The stabilized version of this intrinsic is available on the
749749
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
750750
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
751751
/// as the `order`. For example,
752752
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
753753
pub fn atomic_umax_acq<T>(dst: *mut T, src: T) -> T;
754-
/// Maximum with the current value using an unsized comparison.
754+
/// Maximum with the current value using an unsigned comparison.
755755
///
756756
/// The stabilized version of this intrinsic is available on the
757757
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
758758
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
759759
/// as the `order`. For example,
760760
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
761761
pub fn atomic_umax_rel<T>(dst: *mut T, src: T) -> T;
762-
/// Maximum with the current value using an unsized comparison.
762+
/// Maximum with the current value using an unsigned comparison.
763763
///
764764
/// The stabilized version of this intrinsic is available on the
765765
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
766766
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
767767
/// as the `order`. For example,
768768
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
769769
pub fn atomic_umax_acqrel<T>(dst: *mut T, src: T) -> T;
770-
/// Maximum with the current value using an unsized comparison.
770+
/// Maximum with the current value using an unsigned comparison.
771771
///
772772
/// The stabilized version of this intrinsic is available on the
773773
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing

0 commit comments

Comments
 (0)