Update comments

This commit is contained in:
Yasuhiro Hatta 2016-10-22 23:35:09 +09:00
parent 479913f0f0
commit f1ef6a7270
3 changed files with 16 additions and 3 deletions

View File

@ -175,7 +175,7 @@ extension BinaryReader {
do {
return try reader.readUInt8()
}
catch /*let error*/ {
catch {
return nil
}
}
@ -205,7 +205,7 @@ extension BinaryReader {
do {
return try reader.readUInt16()
}
catch /*let error*/ {
catch {
return nil
}
}
@ -235,7 +235,7 @@ extension BinaryReader {
do {
return try reader.readUInt32()
}
catch /*let error*/ {
catch {
return nil
}
}

View File

@ -9,10 +9,18 @@
// TODO: Documentation
/// No overview available.
public enum CSVError: Error {
/// No overview available.
case cannotOpenFile
/// No overview available.
case cannotReadFile
/// No overview available.
case streamErrorHasOccurred(error: Error)
/// No overview available.
case cannotReadHeaderRow
/// No overview available.
case stringEncodingMismatch
/// No overview available.
case stringEndianMismatch
}

View File

@ -9,7 +9,12 @@
// TODO: Documentation
/// No overview available.
public enum Endian {
/// No overview available.
case big
/// No overview available.
case little
/// No overview available.
case unknown
}