Skip to content

Commit e583c57

Browse files
committed
Fix a comment
1 parent e87c528 commit e583c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ pub const fn swap<T>(x: &mut T, y: &mut T) {
729729
cfg_if! {
730730
// NOTE(eddyb) SPIR-V's Logical addressing model doesn't allow for arbitrary
731731
// reinterpretation of values as (chunkable) byte arrays, and the loop in the
732-
// block optimization in `typed_swap_many` is hard to rewrite back
732+
// block optimization in `ptr::swap_nonoverlapping` is hard to rewrite back
733733
// into the (unoptimized) direct swapping implementation, so we disable it.
734734
if #[cfg(any(target_arch = "spirv"))] {
735735
swap_simple(x, y)

0 commit comments

Comments
 (0)