mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
all: deprecate write_str and replace it with write_string (#9369)
This commit is contained in:
parent
b7a0c44f39
commit
c8416f9a54
13 changed files with 62 additions and 39 deletions
|
@ -32,7 +32,7 @@ fn echo() ? {
|
|||
c.close() or { }
|
||||
}
|
||||
data := 'Hello from vlib/net!'
|
||||
c.write_str(data) ?
|
||||
c.write_string(data) ?
|
||||
mut buf := []byte{len: 4096}
|
||||
read := c.read(mut buf) ?
|
||||
assert read == data.len
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue