mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 18:43:38 +00:00
Updating newline_style documentation
This commit is contained in:
parent
6ff2a5e0f3
commit
e7932fa9c2
@ -1342,6 +1342,25 @@ Unix or Windows line endings
|
||||
- **Possible values**: `"Auto"`, `"Native"`, `"Unix"`, `"Windows"`
|
||||
- **Stable**: Yes
|
||||
|
||||
#### `Auto` (default):
|
||||
|
||||
The newline style is detected automatically on a per-file basis. Files
|
||||
with mixed line endings will be converted to the first detected line
|
||||
ending style.
|
||||
|
||||
#### `Native`
|
||||
|
||||
Line endings will be converted to `\r\n` on Windows and `\n` on all
|
||||
other platforms.
|
||||
|
||||
#### `Unix`
|
||||
|
||||
Line endings will be converted to `\n`.
|
||||
|
||||
#### `Windows`
|
||||
|
||||
Line endings will be converted to `\r\n`.
|
||||
|
||||
## `normalize_comments`
|
||||
|
||||
Convert /* */ comments to // comments where possible
|
||||
|
Loading…
Reference in New Issue
Block a user