From 499e63ef06a90e8bc1473d1a08d5a3882431da5e Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 25 Jan 2020 04:48:02 +0600 Subject: [PATCH] Update CODE_STYLE.md --- CODE_STYLE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).