From cfbfc29e84935be6dfe49d9c4a01edd2e6246deb Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 7 Jul 2022 15:51:40 +0200 Subject: [PATCH] Fix of $sizeof(Type) => Type.sizeof --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9895bf7f..76f4107a5 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ fn void Stack.push(Stack* this, Type element) if (this.capacity == this.size) { this.capacity *= 2; - this.elems = mem::realloc(this.elems, $sizeof(Type) * this.capacity); + this.elems = mem::realloc(this.elems, Type.sizeof * this.capacity); } this.elems[this.size++] = element; }