Browse Source

Update README.md

Marco Bambini 8 years ago
parent
commit
01cc9ae48c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -36,7 +36,8 @@ class Vector {
   	
   	
 	// instance method (built-in String conversion overriding)
 	// instance method (built-in String conversion overriding)
 	func String() {
 	func String() {
-		return "[" + x.String() + "," + y.String() + "," + z.String() + "]";
+	        // string interpolation support
+		return "[\(x),\(y),\(z)]";
 	}
 	}
 }
 }