summaryrefslogtreecommitdiff
path: root/tangle.lp
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2022-05-01 18:35:20 -0400
committereudoxia <uplink@distress.network>2022-05-01 18:35:20 -0400
commit1785c8cc4eb8a60c530a551471f1d5ddf0538e1a (patch)
tree9c6547f640844b057edec1a0446050a0483acbb5 /tangle.lp
parent04518819d5916cd4d024b4c6c777d23c75407e60 (diff)
slight formatting fixes, misc cleaning
Diffstat (limited to 'tangle.lp')
-rw-r--r--tangle.lp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tangle.lp b/tangle.lp
index 95d7e63..a7a6b7f 100644
--- a/tangle.lp
+++ b/tangle.lp
@@ -26,9 +26,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.
@@ -59,7 +57,7 @@ defer arena.deinit();
The input file is then read from stdin. In the case of input exceeding the maximum permitted file size, the program may report the error and exit normally. All other errors which may be returned are memory allocation failures and should thus yield control to the panic handler.
@: 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;