Browse Source

Update README.md

Marco Bambini 7 years ago
parent
commit
01d8f10e5b
1 changed files with 1 additions and 4 deletions
  1. 1 4
      README.md

+ 1 - 4
README.md

@@ -20,10 +20,7 @@ class Vector {
 	var z = 0;
 
 	// constructor
-	func init (a, b, c) {
-		if (!a) a = 0;
-		if (!b) b = 0;
-		if (!c) c = 0;
+	func init (a = 0, b = 0, c = 0) {
 		x = a; y = b; z = c;
 	}