File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,34 +7,34 @@ priority -50
77# ##############
88# Functions #
99# ##############
10- snippet fn " A function, optionally with arguments and return type."
10+ snippet fn " A function, optionally with arguments and return type." b
1111fn ${1: function_name } (${2} )${3 / .. * / -> / }${3} {
1212 ${VISUAL}${0}
1313}
1414endsnippet
1515
16- snippet test " Test function"
16+ snippet test " Test function" b
1717#[test]
1818fn ${1: test_function_name } () {
1919 ${VISUAL}${0}
2020}
2121endsnippet
2222
23- snippet new " A new function"
23+ snippet new " A new function" b
2424pub fn new(${2} ) -> ${1: Name } {
2525 ${VISUAL}${0} return $1 { ${3} };
2626}
2727endsnippet
2828
29- snippet main " The main function"
29+ snippet main " The main function" b
3030pub fn main() {
3131 ${VISUAL}${0}
3232}
3333endsnippet
3434
3535
3636
37- snippet let " A let statement"
37+ snippet let " A let statement" b
3838let ${1: name } ${3} = ${VISUAL}${2} ;
3939endsnippet
4040
You can’t perform that action at this time.
0 commit comments