Small text/comments-related changes

This commit is contained in:
Timofey Solomko
2018-02-07 23:59:42 +03:00
parent 6b6aca4b6c
commit b9f325f91b
4 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -64,10 +64,10 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
# Ignore symbolic link to swcomp executable built by SPM.
# Ignore symbolic link to swcomp executable built by SPM
/swcomp
# Ignore Package.resolved, because there is no dependencies by default for this package.
# Ignore Package.resolved, because we don't want to fix dependencies' versions
Package.resolved
# Ignore docs generated by SourceKitten
@@ -28,6 +28,7 @@ public enum ContainerEntryType {
/// Entry type is unknown.
case unknown
/// This initalizer's semantics assume conversion from UNIX type, which, by definition, doesn't have `unknown` type.
init?(_ unixType: UInt32) {
switch unixType {
case 0o010000:
@@ -9,8 +9,7 @@ import SWCompression
extension ContainerEntryInfo where Self: CustomStringConvertible {
public var description: String {
var output = ""
output += "Name: \(self.name)\n"
var output = "Name: \(self.name)\n"
switch self.type {
case .blockSpecial:
@@ -9,10 +9,12 @@ import SWCompression
extension GzipHeader: CustomStringConvertible {
public var description: String {
var output = ""
output += "File name: \(self.fileName ?? "")\n"
output += "File system type: \(self.osType)\n"
output += "Compression method: \(self.compressionMethod)\n"
var output = """
File name: \(self.fileName ?? "")
File system type: \(self.osType)
Compression method: \(self.compressionMethod)
"""
if let mtime = self.modificationTime {
output += "Modification time: \(mtime)\n"
}