Permalink
Browse files

[doc] manual: prefix the Network type before the variable name in hel…

…lo_chat
  • Loading branch information...
1 parent 3013e32 commit dc93eb0635404df4fba5055f3d991c8cc700769c @Aqua-Ye Aqua-Ye committed with Aqua-Ye May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 opadoc/manual.omd/hello_chat.omd
  2. +1 −1 opadoc/manual.src/hello_chat/hello_chat.opa
@@ -88,7 +88,7 @@ Networks themselves are built upon a unique and extremely powerful paradigm
of _distributed session_, which we will detail in a further chapter.
{block}
-`room = Network.network(message) (Network.cloud("room"))`[opa]
+`Network.network(message) room = Network.cloud("room")`[opa]
This extract defines a _cloud network_ called `room` and initially empty. As
everything in Opa, this network has a type. The type of this network is
@@ -19,7 +19,7 @@ type message = { string author /**The name of the author (arbitrary string)*/
/**
* The chatroom.
*/
-exposed room = Network.network(message) (Network.cloud("room"))
+exposed Network.network(message) room = Network.cloud("room")
/**
* {1 User interface}

0 comments on commit dc93eb0

Please sign in to comment.