@@ -22,7 +22,7 @@ class Friend : Comparable {
24func < (lhs: Friend, rhs: Friend) -> Bool {
24func < (lhs: Friend, rhs: Friend) -> Bool {
25− return lhs.age < rhs.age } func > (lhs: Friend, rhs: Friend) -> Bool {
25+ return lhs.age < rhs.age }; func > (lhs: Friend, rhs: Friend) -> Bool {
26 return lhs.age > rhs.age
26 return lhs.age > rhs.age
28func == (lhs: Friend, rhs: Friend) -> Bool {
28func == (lhs: Friend, rhs: Friend) -> Bool {
@@ -37,7 +37,7 @@ func == (lhs: Friend, rhs: Friend) -> Bool {
37 let friend1 = Friend(name: "Sergey", age: 35)
37 let friend1 = Friend(name: "Sergey", age: 35)
38 let friend2 = Friend(name: "Sergey", age: 30)
38 let friend2 = Friend(name: "Sergey", age: 30)
40− print("\Compare Friend object. Same person? (friend1 == friend2)")
40+ print("Compare Friend object. Same person? (friend1 == friend2)")
42func sayHelloWorld() {
42func sayHelloWorld() {
43 print("Hello World")
43 print("Hello World")