From c06a61e9bf93810174255474598cfeae785cfbd6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 13 Sep 2018 16:34:33 -0400 Subject: remove `this`. add `@This()`. closes #1283 --- std/array_list.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/array_list.zig') diff --git a/std/array_list.zig b/std/array_list.zig index dda6f176eb..3ee425fe14 100644 --- a/std/array_list.zig +++ b/std/array_list.zig @@ -11,7 +11,7 @@ pub fn ArrayList(comptime T: type) type { pub fn AlignedArrayList(comptime T: type, comptime A: u29) type { return struct { - const Self = this; + const Self = @This(); /// Use toSlice instead of slicing this directly, because if you don't /// specify the end position of the slice, this will potentially give -- cgit v1.2.3