Fix typos.

This commit is contained in:
Brent Simmons
2025-04-28 21:45:23 -07:00
parent f6eecd7e51
commit 86f6d51428
21 changed files with 56 additions and 56 deletions

View File

@@ -25,7 +25,7 @@ public extension NSWindow {
func setPointAndSizeAdjustingForScreen(point: NSPoint, size: NSSize, minimumSize: NSSize) {
// point.y specifices from the *top* of the screen, even though screen coordinates work from the bottom up. This is for convenience.
// point.y specifies from the *top* of the screen, even though screen coordinates work from the bottom up. This is for convenience.
// The eventual size may be smaller than requested, since the screen may be small, but not smaller than minimumSize.
guard let screenFrame = screen?.visibleFrame else {

View File

@@ -42,7 +42,7 @@ public extension String {
self.data(using: .utf8)!.md5Hash
}
/// A hexadecimal representaion of an MD5 hash of the string's UTF-8 representation.
/// A hexadecimal representation of an MD5 hash of the string's UTF-8 representation.
var md5String: String {
self.md5Hash.hexadecimalString!
}
@@ -299,7 +299,7 @@ public extension String {
///
/// - Parameter string: The string to search for.
///
/// - Returns: `true` if the string contains `string`; `false` otherswise.
/// - Returns: `true` if the string contains `string`; `false` otherwise.
func caseInsensitiveContains(_ string: String) -> Bool {
return self.range(of: string, options: .caseInsensitive) != nil
}