Skip to content

Commit

Permalink
Minor doc/comment fixes that came up while reading through some code.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-robinson committed Jan 6, 2015
1 parent d098456 commit d8dab5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/devel/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down

0 comments on commit d8dab5d

Please sign in to comment.