diff options
author | Anticrisis <anticrisisg@gmail.com> | 2017-07-21 13:10:54 -1000 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2017-07-25 00:28:17 +0200 |
commit | cf38297b6081bcfcd4959f88c8e105881aad8bd6 (patch) | |
tree | 31750a1952e243c4f27fdd52d648009561984da0 /docs/src/guide/basics.rst | |
parent | 9e6feb69acef6a5422b2c7bf4e60aefadc28c618 (diff) | |
download | libuv-cf38297b6081bcfcd4959f88c8e105881aad8bd6.tar.gz libuv-cf38297b6081bcfcd4959f88c8e105881aad8bd6.zip |
docs: fix guide source code example paths
Source code examples in the User guide were not appearing in the built
documentation because the relative paths were incorrect.
PR-URL: https://github.com/libuv/libuv/pull/1428
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src/guide/basics.rst')
-rw-r--r-- | docs/src/guide/basics.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/guide/basics.rst b/docs/src/guide/basics.rst index 55798bff..91fa6a6d 100644 --- a/docs/src/guide/basics.rst +++ b/docs/src/guide/basics.rst @@ -86,7 +86,7 @@ With the basics out of the way, lets write our first libuv program. It does nothing, except start a loop which will exit immediately. .. rubric:: helloworld/main.c -.. literalinclude:: ../code/helloworld/main.c +.. literalinclude:: ../../code/helloworld/main.c :linenos: This program quits immediately because it has no events to process. A libuv @@ -136,7 +136,7 @@ Handles are opaque structs named as ``uv_TYPE_t`` where type signifies what the handle is used for. .. rubric:: libuv watchers -.. literalinclude:: ../libuv/include/uv.h +.. literalinclude:: ../../../include/uv.h :lines: 197-230 Handles represent long-lived objects. Async operations on such handles are @@ -170,7 +170,7 @@ watcher is stopped when the count is reached and ``uv_run()`` exits since no event watchers are active. .. rubric:: idle-basic/main.c -.. literalinclude:: ../code/idle-basic/main.c +.. literalinclude:: ../../code/idle-basic/main.c :emphasize-lines: 6,10,14-17 Storing context |