Skip to content

Commit

Permalink
Fix a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Mar 16, 2024
1 parent e87c528 commit e583c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ pub const fn swap<T>(x: &mut T, y: &mut T) {
cfg_if! {
// NOTE(eddyb) SPIR-V's Logical addressing model doesn't allow for arbitrary
// reinterpretation of values as (chunkable) byte arrays, and the loop in the
// block optimization in `typed_swap_many` is hard to rewrite back
// block optimization in `ptr::swap_nonoverlapping` is hard to rewrite back
// into the (unoptimized) direct swapping implementation, so we disable it.
if #[cfg(any(target_arch = "spirv"))] {
swap_simple(x, y)
Expand Down

0 comments on commit e583c57

Please sign in to comment.