hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 5d277bc8765cc87a1d0435afe322c3e5e7b7b2c9
parent bf19e35cd571d7598d57fd4b286b3c89c6c4070e
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  2 May 2022 21:49:11 +0200

encoding::pem: minor style improvement

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mencoding/pem/pem.ha | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/encoding/pem/pem.ha b/encoding/pem/pem.ha @@ -103,8 +103,9 @@ export fn next(dec: *decoder) ((str, pemdecoder) | io::EOF | io::error) = { }; strio::reset(&dec.label); - strio::concat(&dec.label, strings::sub(line, - len(begin), len(line) - len(suffix)))!; + const label = strings::sub(line, + len(begin), len(line) - len(suffix)); + strio::concat(&dec.label, label)!; return (strio::string(&dec.label), pemdecoder { stream = &pemdecoder_vt,