mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
docs(libstore): document verb() method returns verb root for gerund form
Add documentation to FileTransferRequest::verb() explaining that it returns a verb root intended to be concatenated with "ing" to form the gerund.
This commit is contained in:
parent
f1968ea38e
commit
d924374bf2
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,11 @@ struct FileTransferRequest
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the verb root for logging purposes.
|
||||||
|
* The returned string is intended to be concatenated with "ing" to form the gerund,
|
||||||
|
* e.g., "download" + "ing" -> "downloading", "upload" + "ing" -> "uploading".
|
||||||
|
*/
|
||||||
std::string verb() const
|
std::string verb() const
|
||||||
{
|
{
|
||||||
switch (method) {
|
switch (method) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue