Ver código fonte

add extra newlines when switching roles for SwiftIMExample

Yeo Kheng Meng 9 anos atrás
pai
commit
25600e48fb
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Examples/SwiftSerialIM/Sources/main.swift

+ 2 - 2
Examples/SwiftSerialIM/Sources/main.swift

@@ -44,10 +44,10 @@ func printToScreenFrom(myself: Bool, characterToPrint: UnicodeScalar){
 
     if(myturn && !myself){
         myturn = false
-        print("\nOther: ", terminator:"")
+        print("\n\nOther: ", terminator:"")
     } else if (!myturn && myself){
         myturn = true
-        print("\nMe: ", terminator:"")
+        print("\n\nMe: ", terminator:"")
     }
 
     print(characterToPrint, terminator:"")