Skip to content

Commit

Permalink
server/doc.go: Updated code block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 27, 2024
1 parent 6b6ceb1 commit d4dac4f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions server/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
// `Server.Listen()` may be called to start and run the server. It should be
// followed up by a loop as such:
//
// for srv.Accept(nil) {
// }
// for p := range srv.Accept() {
// // Use p
// }
//
// `Server.Accept()` blocks until a new player connects to the server and
// spawns in the default world, and calls the function passed to it once this
// happens. If `Server.Accept()` returns false, this means the server was
// closed.
// spawns in the default world.
package server

0 comments on commit d4dac4f

Please sign in to comment.