diff options
author | michelou <michelou@epfl.ch> | 2007-11-27 12:31:59 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-11-27 12:31:59 +0000 |
commit | f5c98713dea7587f103f2aaefc01b285a87619aa (patch) | |
tree | 0ab3f9f2f60e9ca70a76268255c164670035bc20 /docs/examples | |
parent | 59a0cce0c00c3cde6c3bb6753c47a6ae9266891f (diff) | |
download | scala-f5c98713dea7587f103f2aaefc01b285a87619aa.tar.gz scala-f5c98713dea7587f103f2aaefc01b285a87619aa.tar.bz2 scala-f5c98713dea7587f103f2aaefc01b285a87619aa.zip |
fixed #63
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/actors/auction.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/actors/auction.scala b/docs/examples/actors/auction.scala index 1ca538c962..513e9a6ad0 100644 --- a/docs/examples/actors/auction.scala +++ b/docs/examples/actors/auction.scala @@ -23,7 +23,7 @@ case class AuctionConcluded(seller: Actor, client: Actor) // auction concluded case object AuctionFailed extends AuctionReply // failed with no bids case object AuctionOver extends AuctionReply // bidding is closed -class Auction(seller: Actor, minBid: int, closing: Date) extends Actor { +class AuctionActor(seller: Actor, minBid: int, closing: Date) extends Actor { val timeToShutdown = 3000 // msec val bidIncrement = 10 @@ -74,7 +74,7 @@ object auction { val closing = new Date(new Date().getTime() + 4000) val seller = Actor.actor { } - val auction = new Auction(seller, minBid, closing) + val auction = new AuctionActor(seller, minBid, closing) def client(i: int, increment: int, top: int) = new Actor { val name = "Client " + i |