mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-22 23:10:20 +08:00
Update style-guide.md
This commit is contained in:
parent
3ae744e99a
commit
468e5cc202
@ -6,8 +6,8 @@
|
|||||||
Number` rather than `## Generating a secret number`.
|
Number` rather than `## Generating a secret number`.
|
||||||
* Prefer italics over single quotes when calling out a term, ex: `is an
|
* Prefer italics over single quotes when calling out a term, ex: `is an
|
||||||
*associated function* of` rather than `is an ‘associated function’ of`.
|
*associated function* of` rather than `is an ‘associated function’ of`.
|
||||||
* When talking about a method in prose, include the parentheses, ex:
|
* When talking about a method in prose, DO NOT include the parentheses, ex:
|
||||||
`read_line()` rather than `read_line`.
|
`read_line` rather than `read_line()`.
|
||||||
* Hard wrap at 80 chars
|
* Hard wrap at 80 chars
|
||||||
* Prefer not mixing code and not-code in one word, ex: ``Remember when we wrote
|
* Prefer not mixing code and not-code in one word, ex: ``Remember when we wrote
|
||||||
`use std::io`?`` rather than ``Remember when we `use`d `std::io`?``
|
`use std::io`?`` rather than ``Remember when we `use`d `std::io`?``
|
||||||
|
Loading…
Reference in New Issue
Block a user