Skip to content

Commit 6971656

Browse files
committed
Two minor changes: make Checksums a caseless enum, fix a grammar mistake in a code comment
1 parent df9c3fc commit 6971656

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Common/CheckSums.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import Foundation
77

8-
struct CheckSums {
8+
enum CheckSums {
99

1010
// MARK: Functions
1111

Sources/ZIP/LittleEndianByteReader+Zip.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fileprivate extension String {
2929

3030
// "Latin-US (DOS)" CP437-2147483120
3131
// Note that this encoding is interpreted differently "depending on the context". This concerns codes in 0-31 range
32-
// and code 127: sometimes they treated as normal characters (as was defined by IBM) and sometimes as control
32+
// and code 127: sometimes they are treated as normal characters (as was defined by IBM) and sometimes as control
3333
// characters, matching corresponding ranges of ASCII/UTF-8. The second interpretation, however, doesn't make CP437
3434
// compatible with UTF-8, as CP437 contains codes in the 80-FF range which are not valid UTF-8 codes.
3535
// In any case, we are constrained to the implementation provided by Foundation, which currently treats them as

0 commit comments

Comments
 (0)