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; }