From ad56cb2db212aa71d58022382c2432fc777032a8 Mon Sep 17 00:00:00 2001 From: nathany Date: Wed, 10 Dec 2014 09:37:30 -0800 Subject: [PATCH] syntax highlighting --- BoundingResourceUse.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BoundingResourceUse.md b/BoundingResourceUse.md index a49908d3..a34ae572 100644 --- a/BoundingResourceUse.md +++ b/BoundingResourceUse.md @@ -1,8 +1,8 @@ # Bounding resource use -To bound a program's use of a limited resource, like memory, have goroutines synchronize their use of that resource using a buffered channel (i.e., use the channel as a semaphore): +To bound a program's use of a limited resource - like memory - have goroutines synchronize their use of that resource using a buffered channel (i.e., use the channel as a semaphore): -``` +```go const ( AvailableMemory = 10 << 20 // 10 MB AverageMemoryPerRequest = 10 << 10 // 10 KB