diff options
author | eudoxia <uplink@distress.network> | 2022-08-26 09:26:03 -0400 |
---|---|---|
committer | eudoxia <uplink@distress.network> | 2022-08-26 09:26:03 -0400 |
commit | 1adcba5eb7c6d4da9727c21aea66c6cd5dec668f (patch) | |
tree | 3bba39a43e745e9dd741465143a6ae78f81b869a | |
parent | fb91b1071d4978ec915de8e93af4bf96f21f2b35 (diff) |
-rw-r--r-- | data.lp | 3 | ||||
-rw-r--r-- | doc/data.html | 3 | ||||
-rwxr-xr-x | doc/online/data.html | 5 | ||||
-rwxr-xr-x | doc/online/log.html | 2 | ||||
-rwxr-xr-x | doc/online/tangle.html | 2 | ||||
-rwxr-xr-x | doc/online/weave.html | 2 | ||||
-rw-r--r-- | src/data.zig | 3 |
7 files changed, 8 insertions, 12 deletions
@@ -100,8 +100,7 @@ pub const Section = struct { content: []const Content, }; -pub const CodeType = enum { literal, reference }; -pub const Content = union(CodeType) { +pub const Content = union(enum) { literal: LineRange, reference: []const u8, }; diff --git a/doc/data.html b/doc/data.html index 05bc7cf..1507566 100644 --- a/doc/data.html +++ b/doc/data.html @@ -144,8 +144,7 @@ pub const kc_nl = "\\n"; content: []const Content, }; -pub const CodeType = enum { literal, reference }; -pub const Content = union(CodeType) { +pub const Content = union(enum) { literal: LineRange, reference: []const u8, }; diff --git a/doc/online/data.html b/doc/online/data.html index 9fddef4..bad7ce0 100755 --- a/doc/online/data.html +++ b/doc/online/data.html @@ -132,8 +132,7 @@ pub const kc_nl = "\\n"; content: []const Content, }; -pub const CodeType = enum { literal, reference }; -pub const Content = union(CodeType) { +pub const Content = union(enum) { literal: LineRange, reference: []const u8, }; @@ -553,7 +552,7 @@ try buffer.append(try std.mem.concat(alloc, u8, &[_][]const u8{ line[0..star </nav> </div> <footer> -<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="/cw.html">Content Warning.</a> <a href="https://git.distress.network">Git.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> +<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="https://git.distress.network">Repository.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> <img src="/media/distressnetwork-w.svg" alt=""> </footer> </body> diff --git a/doc/online/log.html b/doc/online/log.html index 59e9627..badfa07 100755 --- a/doc/online/log.html +++ b/doc/online/log.html @@ -98,7 +98,7 @@ nosuspend stderr.print(msg, args) catch return; </nav> </div> <footer> -<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="/cw.html">Content Warning.</a> <a href="https://git.distress.network">Git.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> +<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="https://git.distress.network">Repository.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> <img src="/media/distressnetwork-w.svg" alt=""> </footer> </body> diff --git a/doc/online/tangle.html b/doc/online/tangle.html index 02e5905..3ba55c0 100755 --- a/doc/online/tangle.html +++ b/doc/online/tangle.html @@ -137,7 +137,7 @@ defer arena.deinit(); </nav> </div> <footer> -<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="/cw.html">Content Warning.</a> <a href="https://git.distress.network">Git.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> +<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="https://git.distress.network">Repository.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> <img src="/media/distressnetwork-w.svg" alt=""> </footer> </body> diff --git a/doc/online/weave.html b/doc/online/weave.html index 59fc750..c89b4cd 100755 --- a/doc/online/weave.html +++ b/doc/online/weave.html @@ -121,7 +121,7 @@ defer arena.deinit(); </nav> </div> <footer> -<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="/cw.html">Content Warning.</a> <a href="https://git.distress.network">Git.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> +<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="https://git.distress.network">Repository.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> <img src="/media/distressnetwork-w.svg" alt=""> </footer> </body> diff --git a/src/data.zig b/src/data.zig index 0340a82..a280b59 100644 --- a/src/data.zig +++ b/src/data.zig @@ -27,8 +27,7 @@ pub const Section = struct { content: []const Content, }; -pub const CodeType = enum { literal, reference }; -pub const Content = union(CodeType) { +pub const Content = union(enum) { literal: LineRange, reference: []const u8, }; |