Skip to content

Commit 6fe7b84

Browse files
committed
overview: update code snippet and libc list
1 parent 4c8e1f2 commit 6fe7b84

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

content/en-US/learn/overview.smd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ You can find the available libc targets with `zig targets`:
346346
"aarch64-freebsd-none",
347347
"aarch64-linux-gnu",
348348
"aarch64-linux-musl",
349+
"aarch64-maccatalyst-none",
349350
"aarch64-macos-none",
350351
"aarch64-netbsd-none",
351352
"aarch64-windows-gnu",
@@ -382,7 +383,6 @@ You can find the available libc targets with `zig targets`:
382383
"mips64el-linux-gnuabin32",
383384
"mips64el-linux-muslabi64",
384385
"mips64el-linux-muslabin32",
385-
"powerpc-freebsd-eabihf",
386386
"powerpc-linux-gnueabi",
387387
"powerpc-linux-gnueabihf",
388388
"powerpc-linux-musleabi",
@@ -417,6 +417,7 @@ You can find the available libc targets with `zig targets`:
417417
"x86_64-linux-gnux32",
418418
"x86_64-linux-musl",
419419
"x86_64-linux-muslx32",
420+
"x86_64-maccatalyst-none",
420421
"x86_64-macos-none",
421422
"x86_64-netbsd-none",
422423
"x86_64-windows-gnu",

zig-code/features/19-generics.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn List(comptime T: type) type {
99

1010
pub fn main() void {
1111
var buffer: [10]i32 = undefined;
12-
var list = List(i32){
12+
var list: List(i32) = .{
1313
.items = &buffer,
1414
.len = 0,
1515
};

0 commit comments

Comments
 (0)