From 8c36500f507ac46e25c9d956f3ea7bb200dd5a9f Mon Sep 17 00:00:00 2001 From: jowell Date: Tue, 20 Jan 2026 21:44:13 +0800 Subject: [PATCH] docs: update how to build examples; rename _basic.c to basic.c to prevent a name conflict with the compiled output of _basic.zig --- README.md | 6 ++---- examples/{_basic.c => basic.c} | 0 2 files changed, 2 insertions(+), 4 deletions(-) rename examples/{_basic.c => basic.c} (100%) diff --git a/README.md b/README.md index a32b351a..37ca1527 100644 --- a/README.md +++ b/README.md @@ -256,14 +256,12 @@ the file extension. To build an example, use the following: ``` -$ zig build -Dexample-name=_basic.zig +$ zig build -Demit-example=true ... -$ zig-out/bin/example-basic +$ zig-out/bin/example-name ... ``` -The `-Dexample-name` value should be the filename including the extension. - ### Code Comments The Zig code is well commented. If you're comfortable reading code comments diff --git a/examples/_basic.c b/examples/basic.c similarity index 100% rename from examples/_basic.c rename to examples/basic.c