mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Update CODE_STYLE.md
This commit is contained in:
parent
e473d58770
commit
499e63ef06
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue