summaryrefslogtreecommitdiff
path: root/weave.lp
diff options
context:
space:
mode:
Diffstat (limited to 'weave.lp')
-rw-r--r--weave.lp6
1 files changed, 2 insertions, 4 deletions
diff --git a/weave.lp b/weave.lp
index b8cdb14..2ee0635 100644
--- a/weave.lp
+++ b/weave.lp
@@ -24,9 +24,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.
@@ -57,7 +55,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;