1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

GH-666 Make init() of Position public

Why do I have to manually write a public init for a public struct?
This commit is contained in:
Tae Won Ha 2018-08-27 19:48:04 +02:00
parent 9bd76bd91d
commit c95144b2e5

View File

@ -20,6 +20,11 @@ public struct Position: CustomStringConvertible, Equatable {
public var row: Int
public var column: Int
public init(row: Int, column: Int) {
self.row = row
self.column = column
}
public var description: String {
return "Position<\(self.row):\(self.column)>"
}