From 85e1fc2681ad592a08bbdc56aa033013f60ce0dd Mon Sep 17 00:00:00 2001 From: Hana - Piralein <48352564+Piralein@users.noreply.github.com> Date: Fri, 19 May 2023 17:53:54 +0200 Subject: [PATCH] fix c# code example --- doc/classes/String.xml | 2 +- doc/classes/StringName.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index fd50b308c3d..7d348e9c506 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -325,7 +325,7 @@ [/gdscript] [csharp] var text = "hello world"; - var encoded = text.ToUtf8Buffer().HexEncode(); # outputs "68656c6c6f20776f726c64" + var encoded = text.ToUtf8Buffer().HexEncode(); // outputs "68656c6c6f20776f726c64" GD.Print(buf.HexDecode().GetStringFromUtf8()); [/csharp] [/codeblocks] diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index 5b630a092ee..17184654aa0 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -308,7 +308,7 @@ [/gdscript] [csharp] var text = "hello world"; - var encoded = text.ToUtf8Buffer().HexEncode(); # outputs "68656c6c6f20776f726c64" + var encoded = text.ToUtf8Buffer().HexEncode(); // outputs "68656c6c6f20776f726c64" GD.Print(buf.HexDecode().GetStringFromUtf8()); [/csharp] [/codeblocks]