From dbe6cb4ca49d2e90279bdad090327230dee3aafc Mon Sep 17 00:00:00 2001 From: eudoxia Date: Sun, 1 May 2022 18:36:36 -0400 Subject: software/literary: docs syncing --- software/literary/data.html | 4 +--- software/literary/log.html | 6 ++---- software/literary/tangle.html | 6 ++---- 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 @@

License:

// 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/.
 

Constants

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 @@

License:

// 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/.
 

We first import the standard library, and the Level type which is an enum representing the possible log levels.

@@ -77,7 +75,7 @@ const Level = std.log.Level;
if (@enumToInt(level) > @enumToInt(log_level)) return;
 
-

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.

+

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.

Define message string:

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 {

License:

// 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/.
 

First we import the other files containing the core functions.

@@ -84,7 +82,7 @@ defer arena.deinit();

Read file from stdin:

-
const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err|      switch (err) {
+
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 {
 

License:

// 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/.
 

First we import the other files containing the core functions.

@@ -82,7 +80,7 @@ defer arena.deinit();

Read file from stdin:

-
const input = stdin.reader().readAllAlloc(alloc, data.input_max) catch |err|      switch (err) {
+
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;
-- 
cgit v1.2.3