mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: remove byteptr and charptr; replace them with &byte and &char
This commit is contained in:
parent
8dd4a63913
commit
57e6138a61
32 changed files with 250 additions and 226 deletions
|
@ -553,9 +553,9 @@ fn test_bytes_to_string() {
|
|||
}
|
||||
|
||||
fn test_charptr() {
|
||||
foo := charptr('VLANG'.str)
|
||||
foo := &char('VLANG'.str)
|
||||
println(typeof(foo).name)
|
||||
assert typeof(foo).name == 'charptr'
|
||||
assert typeof(foo).name == '&char'
|
||||
assert unsafe { foo.vstring() } == 'VLANG'
|
||||
assert unsafe { foo.vstring_with_len(3) } == 'VLA'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue