Skip to content

Commit efc277f

Browse files
Add note to line continuation section about confusing behavior
1 parent b615c2b commit efc277f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/tokens.md

+5
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ assert_eq!(a, b);
170170
assert_eq!(b, c);
171171
```
172172

173+
> Note: Rust skipping additional newlines (like in example `c`) is potentially confusing and
174+
> unexpected. This behavior may be adjusted in the future. Until a decision is made, it is
175+
> recommended to avoid relying on this, i.e. skipping multiple newlines with line continuations.
176+
> See [this issue](https://github.com/rust-lang/reference/pull/1042) for more information.
177+
173178
#### Character escapes
174179

175180
Some additional _escapes_ are available in either character or non-raw string

0 commit comments

Comments
 (0)