Skip to content

Commit

Permalink
Update UIImage.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored Nov 27, 2023
1 parent d008f7b commit 33ff429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SnapshotTesting/Snapshotting/UIImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
} else {
let byteCountThreshold = Int((1 - precision) * Float(byteCount))
var differentByteCount = 0
// NB: We are purposely using a verbose 'while' look instead of a 'for in' loop. When the
// NB: We are purposely using a verbose 'while' loop instead of a 'for in' loop. When the
// compiler doesn't have optimizations enabled, like in test targets, a `while` loop is
// significantly faster than a `for` loop for iterating through the elements of a memory
// buffer. Details can be found in [SR-6983](https://github.com/apple/swift/issues/49531)
Expand Down

0 comments on commit 33ff429

Please sign in to comment.