summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshat Gadhwal <akshatgadhwal1@gmail.com>2020-10-06 20:56:37 +0530
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-09 23:22:30 +0200
commitfdef133d3dc78fb5926a6a7d28ac2d3150863ef9 (patch)
tree5722c7f971fcbcffa1b3f95bd1c32f0c09484790
parentfd01f0a0ee275e39569ce4aed2a7e2377b148d69 (diff)
Update test.swift
-rw-r--r--tests/syntax-tests/source/Swift/test.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/syntax-tests/source/Swift/test.swift b/tests/syntax-tests/source/Swift/test.swift
index db7ac439..b27d36ba 100644
--- a/tests/syntax-tests/source/Swift/test.swift
+++ b/tests/syntax-tests/source/Swift/test.swift
@@ -22,7 +22,7 @@ class Friend : Comparable {
}
}
func < (lhs: Friend, rhs: Friend) -> Bool {
- return lhs.age < rhs.age } func > (lhs: Friend, rhs: Friend) -> Bool {
+ return lhs.age < rhs.age }; func > (lhs: Friend, rhs: Friend) -> Bool {
return lhs.age > rhs.age
}
func == (lhs: Friend, rhs: Friend) -> Bool {
@@ -37,7 +37,7 @@ func == (lhs: Friend, rhs: Friend) -> Bool {
let friend1 = Friend(name: "Sergey", age: 35)
let friend2 = Friend(name: "Sergey", age: 30)
- print("\Compare Friend object. Same person? (friend1 == friend2)")
+ print("Compare Friend object. Same person? (friend1 == friend2)")
func sayHelloWorld() {
print("Hello World")