mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
[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<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.
This commit is contained in:
parent
54ccab8ccb
commit
7f853c53dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user