From 7f853c53dc8d2225ec9e1927c60f059c166039dd Mon Sep 17 00:00:00 2001 From: geetam Date: Sat, 17 Jun 2017 01:27:03 +0530 Subject: [PATCH] [Docs, libaria2] Fix type of obj pushed into options vector aria::KeyVals is a vector of pair of std strings, therefore the type of object being pushed should be std::pair, however in the docs, the type of the said object is KeyVals. If one follows the docs, their code will fail to compile. --- doc/manual-src/en/libaria2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual-src/en/libaria2.rst b/doc/manual-src/en/libaria2.rst index c39cfa0d..ea2acb38 100644 --- a/doc/manual-src/en/libaria2.rst +++ b/doc/manual-src/en/libaria2.rst @@ -98,7 +98,7 @@ representing aria2 options. For example, specify an option ``file-allocation`` to ``none``:: aria2::KeyVals options; - options.push_back(aria2::KeyVals("file-allocation", "none")); + options.push_back(std::pair ("file-allocation", "none")); The first argument of :func:`sessionNew()` is analogous to the command-line argument to aria2c program. In the example program, we