From 31d1e05d98358ef58c014004a7726a0a59ec20d0 Mon Sep 17 00:00:00 2001
From: Elliot Waite <elliot@elliotwaite.com>
Date: Fri, 28 May 2021 23:08:39 -0700
Subject: [PATCH] Fix error message (#35)

---
 src/vmath.nim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vmath.nim b/src/vmath.nim
index 8366d13..63b8147 100644
--- a/src/vmath.nim
+++ b/src/vmath.nim
@@ -31,7 +31,7 @@ when defined(vmathArrayBased):
   template y*[T](a: GVec3[T]): T = a[1]
   template y*[T](a: GVec4[T]): T = a[1]
 
-  template z*[T](a: GVec2[T]): T = {.error: "using .w on a Vec2".}
+  template z*[T](a: GVec2[T]): T = {.error: "using .z on a Vec2".}
   template z*[T](a: GVec3[T]): T = a[2]
   template z*[T](a: GVec4[T]): T = a[2]