1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Use the Term typealias.

This commit is contained in:
Rob Rix 2015-10-27 18:37:59 -04:00
parent 1df957877e
commit abfe582247

View File

@ -8,7 +8,7 @@ func readFile(path: String) -> String? {
typealias Term = Cofree<String, Range<Int>>
func termWithInput(string: String) -> Cofree<String, Range<Int>>? {
func termWithInput(string: String) -> Term? {
let document = ts_document_make()
defer { ts_document_free(document) }
return string.withCString {