tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

12 lignes · 333 octetsBrut · Historique
1// `bytes.build_string` on bytes that are not valid UTF-8 stops the actor,
2// on both backends.
3
4import std/bytes
5import std/io
6
7pub fn main :: -> () / <io>
8{
9 let b = bytes.builder () |> bytes.append_string "abc" |> bytes.append_byte 255
10 io.println (bytes.build_string b)
11}
12//! panic: bytes.build_string: invalid UTF-8 at byte 3