1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: replace []byte with []u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:35:35 +03:00
parent 0527ac633e
commit fb192d949b
164 changed files with 533 additions and 533 deletions

View File

@ -8,7 +8,7 @@ const (
fn handle_conn(mut c net.TcpConn) {
for {
mut buf := []byte{len: 100, init: 0}
mut buf := []u8{len: 100, init: 0}
read := c.read(mut buf) or {
println('Server: connection dropped')
return
@ -40,7 +40,7 @@ fn echo(address string) ? {
data := 'Hello from vlib/net!'
c.write_string(data) ?
mut buf := []byte{len: 4096}
mut buf := []u8{len: 4096}
read := c.read(mut buf) ?
assert read == data.len
for i := 0; i < read; i++ {