Skip to content

Commit 45c60ae

Browse files
committed
more syntax fixes
1 parent d753116 commit 45c60ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

benchmarks/src/main/scala/effpi/benchmarks/effpi/CountingActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ object CountingActor {
5252
ploop(RecA)
5353
} else {
5454
send(counter, CounterAction.Cheque(self)) >>
55-
read { x: Sum => x match {
55+
read { (x: Sum) => x match {
5656
case Sum(sum) =>
5757
endTimePromise.success(System.nanoTime())
5858
// println(s"The sum of all numbers is $sum")

benchmarks/src/main/scala/effpi/benchmarks/effpi/ForkJoinThroughput.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object ForkJoinThroughput {
2828
var count = 0
2929
prec(RecA) {
3030
if (count < maxMsgs) {
31-
read { _: Message =>
31+
read { (_: Message) =>
3232
count += 1
3333
ploop(RecA)
3434
}

benchmarks/src/main/scala/effpi/benchmarks/effpi/PingPong.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object PingPong {
5050
// println("ping...")
5151
if (count > 0) {
5252
send(pongRef, Ping(self)) >>
53-
read { x: PongMessage => x match {
53+
read { (x: PongMessage) => x match {
5454
case PongMessage.Pong =>
5555
count = count - 1
5656
// println(s"count = $count")

0 commit comments

Comments
 (0)