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:
@ -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++ {
|
||||
|
Reference in New Issue
Block a user