summaryrefslogtreecommitdiff
path: root/tangle.lp
diff options
context:
space:
mode:
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;