aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/enum_export_error.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-05-04 14:29:17 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-05-05 09:42:51 -0400
commite3424332d3fa1264e1f6861b76bb0d1b2996728d (patch)
tree2d786805328dd51b8d8e804ab6b655fc398d2f3f /doc/langref/enum_export_error.zig
parentd582575aba5264aaa02a8af0cdb7da7c4f4c6220 (diff)
downloadzig-e3424332d3fa1264e1f6861b76bb0d1b2996728d.tar.gz
zig-e3424332d3fa1264e1f6861b76bb0d1b2996728d.zip
Build: cleanup
* `doc/langref` formatting * upgrade `.{ .path = "..." }` to `b.path("...")` * avoid using arguments named `self` * make `Build.Step.Id` usage more consistent * add `Build.pathResolve` * use `pathJoin` and `pathResolve` everywhere * make sure `Build.LazyPath.getPath2` returns an absolute path
Diffstat (limited to 'doc/langref/enum_export_error.zig')
-rw-r--r--doc/langref/enum_export_error.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/langref/enum_export_error.zig b/doc/langref/enum_export_error.zig
index c584ef695e..1056fb182a 100644
--- a/doc/langref/enum_export_error.zig
+++ b/doc/langref/enum_export_error.zig
@@ -1,4 +1,6 @@
const Foo = enum { a, b, c };
-export fn entry(foo: Foo) void { _ = foo; }
+export fn entry(foo: Foo) void {
+ _ = foo;
+}
// obj=parameter of type 'enum_export_error.Foo' not allowed in function with calling convention 'C'