summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-03-23 12:18:57 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2010-03-26 13:05:03 +0100
commita443ffc48e5bc131f8980186e577b8329744a3e2 (patch)
treeda35c5959eb4f0bb7c3e699775e4a1b918bb1b92
parent2f5e3071faf3a9ed5d957e38710dd10aa69957a7 (diff)
Fix example in documentation.
-rw-r--r--src/coroutine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coroutine.cpp b/src/coroutine.cpp
index d14bacf..c42ab56 100644
--- a/src/coroutine.cpp
+++ b/src/coroutine.cpp
@@ -30,9 +30,9 @@
Coroutine *c = Coroutine::build(&myCoroutine);
qDebug() << "0.5";
- c.cont(); // prints 1
+ c->cont(); // prints 1
qDebug() << "1.5";
- c.cont(); // prints 2
+ c->cont(); // prints 2
\endcode
By default, a Coroutine will create its own stack space using createStack()