1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +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:
Bernardo Meurer Costa 2025-10-23 20:48:21 +00:00
parent f1968ea38e
commit d924374bf2
No known key found for this signature in database

View file

@ -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
{
switch (method) {