2
0
leaf corcoran 12 жил өмнө
parent
commit
ef0c02e352
1 өөрчлөгдсөн 12 нэмэгдсэн , 12 устгасан
  1. 12 12
      docs/index.md

+ 12 - 12
docs/index.md

@@ -91,10 +91,10 @@ while not done do
     end
   end
 end
-```
 
 server:disconnect()
 host:flush()
+```
 
 Upon receiving the connect message we send `"hello world"` to the server, then
 wait for the response.
@@ -273,17 +273,17 @@ arrive. Defaults to reliable.
 Returns the state of the peer as a string. This can be any of the
 following:
 
- * "disconnected"
- * "connecting"
- * "acknowledging_connect"
- * "connection_pending"
- * "connection_succeeded"
- * "connected"
- * "disconnect_later"
- * "disconnecting"
- * "acknowledging_disconnect"
- * "zombie"
- * "unknown"
+ * `"disconnected"`
+ * `"connecting"`
+ * `"acknowledging_connect"`
+ * `"connection_pending"`
+ * `"connection_succeeded"`
+ * `"connected"`
+ * `"disconnect_later"`
+ * `"disconnecting"`
+ * `"acknowledging_disconnect"`
+ * `"zombie"`
+ * `"unknown"`
 
 ### `peer:receive()`