=doc #3689 Don't rewrite arrows in doc and samples

This commit is contained in:
Patrik Nordwall 2013-12-03 16:34:26 +01:00
parent 37f8f2831b
commit 5a019c0a7a
61 changed files with 531 additions and 517 deletions

View file

@ -17,14 +17,14 @@ object SnapshotExample extends App {
var state = ExampleState()
def receive = {
case Persistent(s, snr) state = state.update(s"${s}-${snr}")
case SaveSnapshotSuccess(metadata) // ...
case SaveSnapshotFailure(metadata, reason) // ...
case SnapshotOffer(_, s: ExampleState)
case Persistent(s, snr) => state = state.update(s"${s}-${snr}")
case SaveSnapshotSuccess(metadata) => // ...
case SaveSnapshotFailure(metadata, reason) => // ...
case SnapshotOffer(_, s: ExampleState) =>
println("offered state = " + s)
state = s
case "print" println("current state = " + state)
case "snap" saveSnapshot(state)
case "print" => println("current state = " + state)
case "snap" => saveSnapshot(state)
}
}