aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-10-12 05:26:11 -0400
committerGitHub <noreply@github.com>2022-10-12 05:26:11 -0400
commit7ce1ee1bce4d9ca05a647c9c390c6525be0b6362 (patch)
treea65ac3b2e1f252a1cc7c5efa6e70f0320034e823 /src/Module.zig
parentbec40a89c21009ea7f2c41362cc13d27f065b43e (diff)
parent8e2aaf6aed5213736f6cbbb374098e2394f19429 (diff)
downloadzig-7ce1ee1bce4d9ca05a647c9c390c6525be0b6362.tar.gz
zig-7ce1ee1bce4d9ca05a647c9c390c6525be0b6362.zip
Merge pull request #13081 from r00ster91/docs
fix(text): hyphenation and other fixes
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 9ab2a859f8..44502ab564 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -3494,7 +3494,7 @@ fn freeExportList(gpa: Allocator, export_list: []*Export) void {
const data_has_safety_tag = @sizeOf(Zir.Inst.Data) != 8;
// TODO This is taking advantage of matching stage1 debug union layout.
// We need a better language feature for initializing a union with
-// a runtime known tag.
+// a runtime-known tag.
const Stage1DataLayout = extern struct {
data: [8]u8 align(@alignOf(Zir.Inst.Data)),
safety_tag: u8,
@@ -4594,7 +4594,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool {
const decl_linksection: ?[*:0]const u8 = blk: {
const linksection_ref = decl.zirLinksectionRef();
if (linksection_ref == .none) break :blk null;
- const bytes = try sema.resolveConstString(&block_scope, section_src, linksection_ref, "linksection must be comptime known");
+ const bytes = try sema.resolveConstString(&block_scope, section_src, linksection_ref, "linksection must be comptime-known");
if (mem.indexOfScalar(u8, bytes, 0) != null) {
return sema.fail(&block_scope, section_src, "linksection cannot contain null bytes", .{});
} else if (bytes.len == 0) {