Change to_utf8 to to_utf8_buffer and to_ascii to to_ascii_buffer in remaining docs

The method `to_utf8` doesn't exist in Godot 4, but is still mentioned in
the documentation in some places. Replace it with the new name
`to_utf8_buffer`. Same for ascii. Same for C#.
This commit is contained in:
mara
2023-03-13 22:58:27 +01:00
parent 79454bfd3b
commit 57dca93718
7 changed files with 38 additions and 38 deletions

View File

@ -112,7 +112,7 @@
socket = PacketPeerUDP.new()
# Server
socket.set_dest_address("127.0.0.1", 789)
socket.put_packet("Time to stop".to_ascii())
socket.put_packet("Time to stop".to_ascii_buffer())
# Client
while socket.wait() == OK:
@ -124,7 +124,7 @@
var socket = new PacketPeerUDP();
// Server
socket.SetDestAddress("127.0.0.1", 789);
socket.PutPacket("Time to stop".ToAscii());
socket.PutPacket("Time to stop".ToAsciiBuffer());
// Client
while (socket.Wait() == OK)