Skip to content

Commit d633087

Browse files
committed
---
yaml --- r: 12124 b: refs/heads/master c: d92f3ac h: refs/heads/master v: v3
1 parent ca98055 commit d633087

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 11610f9ca1a9da187c1b6f0d40ae2e369afd4fee
2+
refs/heads/master: d92f3ac5242e9bd03ced5d23b8e2cdb986d68f8a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ iterate over all characters, which `str::chars` helps with), and
13081308
for those that do, many don't need actual characters, and can operate
13091309
on bytes. For algorithms that do really need to index by character,
13101310
there's the option to convert your string to a character vector (using
1311-
`str::to_chars`).
1311+
`str::chars`).
13121312

13131313
Like vectors, strings are always unique. You can wrap them in a shared
13141314
box to share them. Unlike vectors, there is no mutable variant of

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ syn match rustFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
4646
"floating point number, without dot, with exponent
4747
syn match rustFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
4848

49-
syn match rustCharacter "'[^']*'"
50-
5149
syn case match
50+
51+
syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"
52+
5253
syn region rustComment start="/\*" end="\*/" contains=rustComment
5354
syn region rustComment start="//" skip="\\$" end="$" keepend
5455

0 commit comments

Comments
 (0)