diff --git a/doc/tutorial.qbk b/doc/tutorial.qbk index 972bf448..108c3b61 100644 --- a/doc/tutorial.qbk +++ b/doc/tutorial.qbk @@ -284,13 +284,16 @@ In this tutorial we will modify the program from tutorial Timer.2 so that the ti To implement a repeating timer using asio you need to change the timer's expiry time in your completion handler, and to then start a new asynchronous wait. Obviously this means that the completion handler will need to be able to access the timer object. To this end we add two new parameters to the `print` function: -* A pointer to a timer object. +* a pointer to a timer object; and -* A counter so that we can stop the program when the timer fires for the sixth time. +* a counter so that we can stop the program when the timer fires for the sixth time +at the end of the parameter list. + + ``''''''``void print(const boost::system::error_code& /*e*/, ``''''''`` boost::asio::steady_timer* t, int* count) diff --git a/example/cpp03/tutorial/timer_dox.txt b/example/cpp03/tutorial/timer_dox.txt index 7a811001..e66f1203 100644 --- a/example/cpp03/tutorial/timer_dox.txt +++ b/example/cpp03/tutorial/timer_dox.txt @@ -143,10 +143,12 @@ asynchronous wait. Obviously this means that the completion handler will need to be able to access the timer object. To this end we add two new parameters to the print function: -\li A pointer to a timer object. +\li a pointer to a timer object; and -\li A counter so that we can stop the program when the timer fires for the -sixth time. +\li a counter so that we can stop the program when the timer fires for the +sixth time + +at the end of the parameter list. \until {