Merge pull request #77247 from Piralein/nohashforyou
Fix C# code examples in `String` and `StringName`
This commit is contained in:
commit
809a982162
2 changed files with 2 additions and 2 deletions
|
@ -333,7 +333,7 @@
|
||||||
[/gdscript]
|
[/gdscript]
|
||||||
[csharp]
|
[csharp]
|
||||||
var text = "hello world";
|
var text = "hello world";
|
||||||
var encoded = text.ToUtf8Buffer().HexEncode(); # outputs "68656c6c6f20776f726c64"
|
var encoded = text.ToUtf8Buffer().HexEncode(); // outputs "68656c6c6f20776f726c64"
|
||||||
GD.Print(buf.HexDecode().GetStringFromUtf8());
|
GD.Print(buf.HexDecode().GetStringFromUtf8());
|
||||||
[/csharp]
|
[/csharp]
|
||||||
[/codeblocks]
|
[/codeblocks]
|
||||||
|
|
|
@ -316,7 +316,7 @@
|
||||||
[/gdscript]
|
[/gdscript]
|
||||||
[csharp]
|
[csharp]
|
||||||
var text = "hello world";
|
var text = "hello world";
|
||||||
var encoded = text.ToUtf8Buffer().HexEncode(); # outputs "68656c6c6f20776f726c64"
|
var encoded = text.ToUtf8Buffer().HexEncode(); // outputs "68656c6c6f20776f726c64"
|
||||||
GD.Print(buf.HexDecode().GetStringFromUtf8());
|
GD.Print(buf.HexDecode().GetStringFromUtf8());
|
||||||
[/csharp]
|
[/csharp]
|
||||||
[/codeblocks]
|
[/codeblocks]
|
||||||
|
|
Loading…
Reference in a new issue