mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@ -530,7 +530,7 @@ fn (re RE) get_char_class(pc int) string {
|
||||
buf_ptr[i] = byte(0)
|
||||
}
|
||||
|
||||
return tos_clone( buf_ptr )
|
||||
return unsafe { tos_clone( buf_ptr ) }
|
||||
}
|
||||
|
||||
fn (re RE) check_char_class(pc int, ch rune) bool {
|
||||
|
Reference in New Issue
Block a user