From d8dab5dfb9c01df2f12d3b742aae007a6002193b Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Tue, 6 Jan 2015 18:05:33 +0000 Subject: [PATCH] Minor doc/comment fixes that came up while reading through some code. --- docs/devel/development.md | 3 +++ pkg/util/util.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/devel/development.md b/docs/devel/development.md index 8cccbcd90be..2b7476e82c7 100644 --- a/docs/devel/development.md +++ b/docs/devel/development.md @@ -161,6 +161,9 @@ go run e2e.go --build # Create a fresh cluster. Deletes a cluster first, if it exists go run e2e.go --up +# Create a fresh cluster at a specific release version. +go run e2e.go --up --version=0.7.0 + # Test if a cluster is up. go run e2e.go --isup diff --git a/pkg/util/util.go b/pkg/util/util.go index 086ff3881f6..6545aa171c5 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -51,12 +51,12 @@ func HandleCrash() { } } -// Forever loops forever running f every d. Catches any panics, and keeps going. +// Forever loops forever running f every period. Catches any panics, and keeps going. func Forever(f func(), period time.Duration) { Until(f, period, nil) } -// Until loops until stop channel is closed, running f every d. +// Until loops until stop channel is closed, running f every period. // Catches any panics, and keeps going. f may not be invoked if // stop channel is already closed. func Until(f func(), period time.Duration, stopCh <-chan struct{}) {