Skip to content

Commit bbda6e0

Browse files
committed
Add comment
1 parent 55ea34d commit bbda6e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ use self::imp::Group;
4444
#[cfg(feature = "nightly")]
4545
use core::intrinsics::{likely, unlikely};
4646

47+
// On stable we can use #[cold] to get a equivalent effect: this attributes
48+
// suggests that the function is unlikely to be called
4749
#[cfg(not(feature = "nightly"))]
4850
#[inline]
4951
#[cold]
@@ -56,7 +58,6 @@ fn likely(b: bool) -> bool {
5658
b
5759
}
5860
#[cfg(not(feature = "nightly"))]
59-
#[cold]
6061
#[inline]
6162
fn unlikely(b: bool) -> bool {
6263
if b { cold() }

0 commit comments

Comments
 (0)