docs: improve example applications
refs: #1976
Change-Id: I82e719ac497d3cb4eab74c1c6d02bcaa050388eb
diff --git a/docs/examples.rst b/docs/examples.rst
index e512c72..a609ad6 100644
--- a/docs/examples.rst
+++ b/docs/examples.rst
@@ -15,15 +15,10 @@
``/localhost/testApp/randomData``. While expressing Interest, the app specifies two
callbacks to be called when Data is retrieved or Interest times out.
-``ndn::bind`` is an alias for either `boost::bind
-<http://www.boost.org/doc/libs/1_55_0/libs/bind/bind.html>`_ or `std::bind
-<http://en.cppreference.com/w/cpp/utility/functional/bind>`_ when the library is compiled
-in C++11 mode.
-
.. literalinclude:: ../examples/consumer.cpp
:language: c++
:linenos:
- :emphasize-lines: 24-26,32-34,48-52,54
+ :emphasize-lines: 24-27,39,43-46,50,57,67
Trivial producer
@@ -47,7 +42,7 @@
.. literalinclude:: ../examples/producer.cpp
:language: c++
:linenos:
- :emphasize-lines: 44-47,50,56,71-74
+ :emphasize-lines: 42,55-58,61,64,67,70,76
Consumer that uses ndn::Scheduler
@@ -71,4 +66,5 @@
.. literalinclude:: ../examples/consumer-with-timer.cpp
:language: c++
:linenos:
- :emphasize-lines: 19,61,76,79-80,83
+ :emphasize-lines: 39-40,51-54,58-59,61-62,99-100
+