Update Rust for to use new range syntax

This commit is contained in:
Louis Pilfold 2015-01-11 01:41:41 +00:00
parent e23c91001e
commit 18733185c1
3 changed files with 3 additions and 2 deletions

View File

@ -214,6 +214,7 @@ This list is kept up-to-date on a best effort basis.
* PHP - [chrisyue](http://github.com/chrisyue)
* Python - [honza](http://github.com/honza)
* Ruby - [taq](http://github.com/taq)
* Rust - [lpil](https://github.com/lpil)
* Scala - [gorodinskiy](https://github.com/gorodinskiy)
License

View File

@ -164,7 +164,7 @@ while ${1} {
endsnippet
snippet for "for .. in .." b
for ${1:i} in ${2:range(0u, 10)} {
for ${1:i} in ${2:${3:0us}..${4:10}} {
${VISUAL}${0}
}
endsnippet

View File

@ -70,7 +70,7 @@ snippet while
${0}
}
snippet for
for ${1:i} in ${2:range(0u, 10)} {
for ${1:i} in ${2:0u..10} {
${0}
}
snippet spawn