presentations/highlight-js/test/detect/swift/default.txt

16 lines
297 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
import Foundation
@objc class Person: Entity {
var name: String!
var age: Int!
init(name: String, age: Int) {
/* /* ... */ */
}
// Return a descriptive string for this person
func description(offset: Int = 0) -> String {
return "\(name) is \(age + offset) years old"
}
}