diff options
author | eudoxia <uplink@distress.network> | 2022-05-01 18:36:36 -0400 |
---|---|---|
committer | eudoxia <uplink@distress.network> | 2022-05-01 18:36:36 -0400 |
commit | dbe6cb4ca49d2e90279bdad090327230dee3aafc (patch) | |
tree | 06f35758d26e5b062546d2cd4934d0c8cdec82ca | |
parent | e7d6d7706ac2a200593a3d98d6af46bb05e3991e (diff) |
software/literary: docs syncing
-rwxr-xr-x | software/literary/data.html | 4 | ||||
-rwxr-xr-x | software/literary/log.html | 6 | ||||
-rwxr-xr-x | software/literary/tangle.html | 6 | ||||
-rwxr-xr-x | software/literary/weave.html | 6 |
4 files changed, 7 insertions, 15 deletions
diff --git a/software/literary/data.html b/software/literary/data.html index d66a5d9..3453250 100755 --- a/software/literary/data.html +++ b/software/literary/data.html @@ -53,9 +53,7 @@ <h3 id="license">License:</h3> <pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/2.0/. +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. </code></pre> <h2 id="constants">Constants</h2> diff --git a/software/literary/log.html b/software/literary/log.html index ea19845..59e9627 100755 --- a/software/literary/log.html +++ b/software/literary/log.html @@ -33,9 +33,7 @@ <h3 id="license">License:</h3> <pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/2.0/. +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. </code></pre> <p>We first import the standard library, and the <code>Level</code> type which is an enum representing the possible log levels.</p> @@ -77,7 +75,7 @@ const Level = std.log.Level; <pre><code>if (@enumToInt(level) > @enumToInt(log_level)) return; </code></pre> -<p>Next the message string is created. The unformatted content of this string is evaluated at compile-time, before being formatted by the print function at runtime. The “info” and “error” log levels use custom names, whereas all other levels use their default display names.</p> +<p>Next the message string is created. The unformatted content of this string is evaluated at compile time, before being formatted by the print function at runtime. The ‘info’ and ‘error’ log levels use custom names, whereas all other levels use their default display names.</p> <h3 id="define-message-string">Define message string:</h3> diff --git a/software/literary/tangle.html b/software/literary/tangle.html index 14a834c..02e5905 100755 --- a/software/literary/tangle.html +++ b/software/literary/tangle.html @@ -47,9 +47,7 @@ pub fn main() !u8 { <h3 id="license">License:</h3> <pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/2.0/. +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. </code></pre> <p>First we import the other files containing the core functions.</p> @@ -84,7 +82,7 @@ defer arena.deinit(); <h3 id="read-file-from-stdin">Read file from stdin:</h3> -<pre><code>const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err| switch (err) { +<pre><code>const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err| switch (err) { error.StreamTooLong => { log(.err, "input too large (maximum {})", .{std.fmt.fmtIntSizeBin(data.input_max)}); return 1; diff --git a/software/literary/weave.html b/software/literary/weave.html index 2f9c044..59fc750 100755 --- a/software/literary/weave.html +++ b/software/literary/weave.html @@ -45,9 +45,7 @@ pub fn main() !u8 { <h3 id="license">License:</h3> <pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/2.0/. +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. </code></pre> <p>First we import the other files containing the core functions.</p> @@ -82,7 +80,7 @@ defer arena.deinit(); <h3 id="read-file-from-stdin">Read file from stdin:</h3> -<pre><code>const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err| switch (err) { +<pre><code>const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err| switch (err) { error.StreamTooLong => { log(.err, "input too large (maximum {})", .{std.fmt.fmtIntSizeBin(data.input_max)}); return 1; |