From 895d0838799ef53b02aa4ef8605c8c74e09f3bce Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 28 Nov 2015 17:28:26 +0200 Subject: [PATCH] README prettifying --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff3fef2..fc91842 100644 --- a/README.md +++ b/README.md @@ -89,9 +89,9 @@ BenchmarkServerGet10KReqPerConn1KClients-4 5000000 359 ns/op `go tool pprof --alloc_objects your-program mem.pprof` usually gives better insights for optimization opportunities than `go tool pprof your-program cpu.pprof`. * Write [tests and benchmarks](https://golang.org/pkg/testing/) for hot paths. -* Avoid conversion between []byte and string, since this may result in memory - allocation+copy. Fasthttp API provides functions for both []byte and string - - use these functions instead of converting manually between []byte and string. +* Avoid conversion between `[]byte` and `string`, since this may result in memory + allocation+copy. Fasthttp API provides functions for both `[]byte` and `string` - + use these functions instead of converting manually between `[]byte` and `string`. * Verify your tests and production code under [race detector](https://golang.org/doc/articles/race_detector.html) on a regular basis.