Permalink
Browse files

Cleanup example documentation

  • Loading branch information...
1 parent fa823a7 commit 9baab936dab22f0031e9e72a72d2a7d0c710309f Evan Farrer committed Apr 26, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 example_test.go
View
@@ -10,9 +10,7 @@ import (
"os"
)
-/*
- * Basic usage of a IOThrottlerPool to throttle reading from a file
- */
+// Basic usage of a IOThrottlerPool to throttle reading from a file
func ExampleIOThrottlerPool() {
// Construct a bandwidth throttling pool that's limited to 100 bytes per second
pool := NewIOThrottlerPool(BytesPerSecond * 100)
@@ -42,9 +40,7 @@ func ExampleIOThrottlerPool() {
// Output: Done
}
-/*
- * Throttle web requests using an IOThrottlerPool
- */
+// Throttle web requests using an IOThrottlerPool
func ExampleIOThrottlerPool_AddConn() {
// Construct a bandwidth throttling pool that's limited to 30 kilobits per
// second

0 comments on commit 9baab93

Please sign in to comment.