Skip to content

Commit

Permalink
Another doc tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemeyer committed Oct 10, 2011
1 parent bd20235 commit 6f37969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tomb.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ func (t *Tomb) Wait() os.Error {
return t.reason
}

// Done informs that the goroutine in a dead state, and should be called a
// single time right before the goroutine function or method returns.
// Done flags the goroutine as dead, and should be called a single time
// right before the goroutine function or method returns.
// If the goroutine was not already in a dying state before Done is
// called, it will flagged as dying and dead at once.
func (t *Tomb) Done() {
t.Fatal(nil)
close(t.Dead)
}

// Fatal informs that the goroutine in a dying state.
// Fatal flags the goroutine as dying.
// The first non-nil reason parameter to Fatal or the first Fatalf-generated
// error is recorded as the reason for the goroutine death.
// This method may be safely called concurrently, and may be called both from
Expand Down

0 comments on commit 6f37969

Please sign in to comment.