diff --git a/akka-docs/scala/dispatchers.rst b/akka-docs/scala/dispatchers.rst index afc7d204ec..4f385364a2 100644 --- a/akka-docs/scala/dispatchers.rst +++ b/akka-docs/scala/dispatchers.rst @@ -65,12 +65,10 @@ The 'PinnedDispatcher' binds a dedicated OS thread to each specific Actor. The m It would normally by used from within the actor like this: -.. code-block:: java +.. code-block:: scala class MyActor extends Actor { - public MyActor() { self.dispatcher = Dispatchers.newPinnedDispatcher(self) - } ... }