Update CODE_STYLE.md

This commit is contained in:
Temirkhan Myrzamadi 2020-01-25 04:48:02 +06:00 committed by GitHub
parent e473d58770
commit 499e63ef06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,6 @@ C: Into<String>, { ... }
```
</details>
# 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).