Skip to content

Commit c774075

Browse files
authored
Update StringName.xml
Fixed hex_decode() example
1 parent d4363d5 commit c774075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/classes/StringName.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@
350350
[gdscript]
351351
var text = "hello world"
352352
var encoded = text.to_utf8_buffer().hex_encode() # outputs "68656c6c6f20776f726c64"
353-
print(buf.hex_decode().get_string_from_utf8())
353+
print(encoded.hex_decode().get_string_from_utf8())
354354
[/gdscript]
355355
[csharp]
356356
var text = "hello world";
357357
var encoded = text.ToUtf8Buffer().HexEncode(); // outputs "68656c6c6f20776f726c64"
358-
GD.Print(buf.HexDecode().GetStringFromUtf8());
358+
GD.Print(encoded.HexDecode().GetStringFromUtf8());
359359
[/csharp]
360360
[/codeblocks]
361361
</description>

0 commit comments

Comments
 (0)