strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)

This commit is contained in:
Benjamin Stigsen 2022-01-28 19:34:44 +01:00 committed by GitHub
parent 7f22ed7935
commit ceb05b163a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 100 additions and 88 deletions

View file

@ -65,7 +65,7 @@ fn test_byte_write() {
temp_str := 'byte testing'
mut count := 0
for word in temp_str {
sb.write_b(word)
sb.write_byte(word)
count++
assert count == sb.len
}