diff --git a/CODE_STYLE.md b/CODE_STYLE.md index aaa9a311..359d4c08 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -112,6 +112,6 @@ C: Into, { ... } ``` -# Naming +## Naming 1. Avoid unnecessary duplication (`Message::message_id` -> `Message::id` using `#[serde(rename = "message_id")]`). 2. Use a generic parameter name `S` for streams, `Fut` for futures, `F` for functions (where possible).