strings: use deprecated_after for the .write_bytes method

pull/9595/head
Delyan Angelov 2021-04-04 10:01:26 +03:00
parent 337e447cfb
commit 82f3ca2d55
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ pub fn new_builder(initial_size int) Builder {
}
// write_bytes appends `bytes` to the accumulated buffer
//[deprecated: 'use Builder.write_ptr() instead']
[deprecated: 'use Builder.write_ptr() instead']
[deprecated_after: '2021-04-18']
[unsafe]
pub fn (mut b Builder) write_bytes(bytes byteptr, len int) {
unsafe { b.write_ptr(bytes, len) }