From 0395e057bc96ba673661ea98056ba38631b034ff Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Sun, 11 Apr 2010 10:18:49 -0700 Subject: testing: update documentation to match current coding style R=rsc, r CC=golang-dev http://codereview.appspot.com/823045 Committer: Rob Pike --- src/pkg/testing/script/script.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pkg/testing/script/script.go') diff --git a/src/pkg/testing/script/script.go b/src/pkg/testing/script/script.go index 9a41a467f..3dbfbd5ff 100644 --- a/src/pkg/testing/script/script.go +++ b/src/pkg/testing/script/script.go @@ -206,10 +206,10 @@ func NewEvent(name string, predecessors []*Event, action action) *Event { // receive events must list the send event as a predecessor but there is no // ordering between the receive events. // -// send := NewEvent("send", nil, Send{c, 1}); -// recv1 := NewEvent("recv 1", []*Event{send}, Recv{c, 1}); -// recv2 := NewEvent("recv 2", []*Event{send}, Recv{c, 1}); -// Perform(0, []*Event{send, recv1, recv2}); +// send := NewEvent("send", nil, Send{c, 1}) +// recv1 := NewEvent("recv 1", []*Event{send}, Recv{c, 1}) +// recv2 := NewEvent("recv 2", []*Event{send}, Recv{c, 1}) +// Perform(0, []*Event{send, recv1, recv2}) // // At first, only the send event would be in the ready set and thus Perform will // send a value to the input channel. Now the two receive events are ready and -- cgit v1.2.3