From dfa414e5e4da37798833bbf8c33919acb5f3c2ea Mon Sep 17 00:00:00 2001 From: peterzhongyi <49351430+peterzhongyi@users.noreply.github.com> Date: Thu, 30 May 2024 20:57:01 -0400 Subject: [PATCH] Change the line to modify in Quickstart: Edit a Game Server (#3844) Co-authored-by: Yi Zhong --- .../en/docs/Getting Started/edit-first-gameserver-go.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/content/en/docs/Getting Started/edit-first-gameserver-go.md b/site/content/en/docs/Getting Started/edit-first-gameserver-go.md index a8cce2fd4c..65ef2ac442 100644 --- a/site/content/en/docs/Getting Started/edit-first-gameserver-go.md +++ b/site/content/en/docs/Getting Started/edit-first-gameserver-go.md @@ -27,16 +27,16 @@ Also complete the "Enabling creation of RBAC resources" and "Installing Agones" ### Modify the simple-game-server example source code Modify the {{< ghlink href="examples/simple-game-server/main.go" >}}main.go{{< /ghlink >}} file. For example: -Change the following line in `main.go`: +Change the following line in function `udpReadWriteLoop` in file `main.go`: From: ```go -response = "ACK TCP: " + response + "\n" +response = "ACK: " + response + "\n" ``` To: ```go -response = "ACK TCP Echo Says: " + response + "\n" +response = "ACK Echo Says: " + response + "\n" ``` ### Build Server @@ -110,7 +110,7 @@ If you do not have netcat installed ``` nc -u {IP} {PORT} Hello World! -ACK TCP: Echo says Hello World! +ACK Echo Says: Hello World! EXIT ```