api-guidelines icon indicating copy to clipboard operation
api-guidelines copied to clipboard

C-WORD-ORDER when there is no verb

Open Kestrer opened this issue 4 years ago • 0 comments

C-WORD-ORDER requires that errors be named VerbNounError. However, this doesn't work for cases where there is no verb, for example in getters:

impl Response {
    fn bytes(self) -> Result<Vec<u8>, /* ? */> { ... }
}

What should be done in this case?

Kestrer avatar Jul 22 '21 05:07 Kestrer