mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-25 14:52:19 +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:
parent
9bd76bd91d
commit
c95144b2e5
@ -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)>"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user