Explorar el Código

deadline: adjust example comments

They were rather unclear. Fixes #9.
Evan Huus hace 10 años
padre
commit
b86b1ec0dd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      deadline/README.md

+ 2 - 2
deadline/README.md

@@ -13,8 +13,8 @@ Creating a deadline takes one parameter: how long to wait.
 dl := deadline.New(1 * time.Second)
 
 err := dl.Run(func(stopper <-chan struct{}) error {
-	// do something possibly slow
-	// check stopper function and give up if timed out
+	// do something potentially slow
+	// give up when the `stopper` channel is closed (indicating a time-out)
 	return nil
 })