Browse Source

Update README.md

Stanislav Denisov 4 years ago
parent
commit
240cdf543c
1 changed files with 5 additions and 5 deletions
  1. 5 5
      README.md

+ 5 - 5
README.md

@@ -58,7 +58,7 @@ Before starting to work, the library should be initialized using `ENet.Library.I
 After the work is done, deinitialize the library using `ENet.Library.Deinitialize();` function.
 
 ### .NET environment
-##### Start a new server:
+##### Start a new server
 ```c#
 using (Host server = new Host()) {
 	Address address = new Address();
@@ -107,7 +107,7 @@ using (Host server = new Host()) {
 }
 ```
 
-##### Start a new client:
+##### Start a new client
 ```c#
 using (Host client = new Host()) {
 	Address address = new Address();
@@ -159,7 +159,7 @@ using (Host client = new Host()) {
 }
 ```
 
-##### Create and send a new packet:
+##### Create and send a new packet
 ```csharp
 Packet packet = default(Packet);
 byte[] data = new byte[64];
@@ -168,14 +168,14 @@ packet.Create(data);
 peer.Send(channelID, ref packet);
 ```
 
-##### Copy payload from a packet:
+##### Copy payload from a packet
 ```csharp
 byte[] buffer = new byte[1024];
 
 netEvent.Packet.CopyTo(buffer);
 ```
 
-##### Integrate with a custom memory allocator:
+##### Integrate with a custom memory allocator
 ```csharp
 AllocCallback OnMemoryAllocate = (size) => {
 	return Marshal.AllocHGlobal(size);