Skip to content

Commit

Permalink
[Docs, libaria2] Fix type of obj pushed into options vector
Browse files Browse the repository at this point in the history
aria::KeyVals is a vector of pair of std strings, therefore the type of object being pushed should be std::pair<std::string, std::string>,
however in the docs, the type of the said object is KeyVals.
If one follows the docs, their code will fail to compile.
  • Loading branch information
geetam authored Jun 16, 2017
1 parent 54ccab8 commit 7f853c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual-src/en/libaria2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, std::string> ("file-allocation", "none"));

The first argument of :func:`sessionNew()` is analogous to the
command-line argument to aria2c program. In the example program, we
Expand Down

0 comments on commit 7f853c5

Please sign in to comment.