Skip to content

Commit

Permalink
spelling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LePips committed Jan 24, 2022
1 parent 3a28561 commit b47b027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Puppy/FileRotationLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class FileRotationLogger: FileLogger {
public var maxFileSize: ByteCount = 10 * 1024 * 1024
public var maxArchivedFilesCount: UInt8 = 5

public weak var delegate: FileRotationLoggerDeletate?
public weak var delegate: FileRotationLoggerDelegate?

public init(_ label: String, fileURL: URL) throws {
try super.init(label, fileURL: fileURL)
Expand Down Expand Up @@ -113,7 +113,7 @@ public class FileRotationLogger: FileLogger {
}
}

public protocol FileRotationLoggerDeletate: AnyObject {
public protocol FileRotationLoggerDelegate: AnyObject {
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didArchiveFileURL: URL, toFileURL: URL)
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didRemoveArchivedFileURL: URL)
}
2 changes: 1 addition & 1 deletion Tests/PuppyTests/FileRotationLoggerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class FileRotationLoggerTests: XCTestCase {
}
}

extension FileRotationLoggerTests: FileRotationLoggerDeletate {
extension FileRotationLoggerTests: FileRotationLoggerDelegate {
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didArchiveFileURL: URL, toFileURL: URL) {
print("didArchive! didArchiveFileURL: \(didArchiveFileURL), toFileURL: \(toFileURL)")
}
Expand Down

0 comments on commit b47b027

Please sign in to comment.