aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2020-04-22 12:40:31 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2020-04-22 12:40:32 +0200
commit99f8ffcc4e66fe089fbeba372dadd5940632c060 (patch)
tree63016b3f3023b045fcb5c1faa724099c1b4e896f /docs/src
parentaa93eb25839d662dc2503c164bb93756c238f660 (diff)
downloadlibuv-99f8ffcc4e66fe089fbeba372dadd5940632c060.tar.gz
libuv-99f8ffcc4e66fe089fbeba372dadd5940632c060.zip
doc: correct source lines
PR-URL: https://github.com/libuv/libuv/pull/2802 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/guide/threads.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/src/guide/threads.rst b/docs/src/guide/threads.rst
index fde07bbe..c610d47c 100644
--- a/docs/src/guide/threads.rst
+++ b/docs/src/guide/threads.rst
@@ -293,7 +293,7 @@ informing the user of the status of running downloads.
.. rubric:: progress/main.c
.. literalinclude:: ../../code/progress/main.c
:linenos:
- :lines: 7-8,34-
+ :lines: 7-8,35-
:emphasize-lines: 2,11
The async thread communication works *on loops* so although any thread can be
@@ -318,7 +318,7 @@ with the async watcher whenever it receives a message.
.. rubric:: progress/main.c
.. literalinclude:: ../../code/progress/main.c
:linenos:
- :lines: 10-23
+ :lines: 10-24
:emphasize-lines: 7-8
In the download function, we modify the progress indicator and queue the message
@@ -328,7 +328,7 @@ non-blocking and will return immediately.
.. rubric:: progress/main.c
.. literalinclude:: ../../code/progress/main.c
:linenos:
- :lines: 30-33
+ :lines: 31-34
The callback is a standard libuv pattern, extracting the data from the watcher.
@@ -337,7 +337,7 @@ Finally it is important to remember to clean up the watcher.
.. rubric:: progress/main.c
.. literalinclude:: ../../code/progress/main.c
:linenos:
- :lines: 25-28
+ :lines: 26-29
:emphasize-lines: 3
After this example, which showed the abuse of the ``data`` field, bnoordhuis_