mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 22:14:02 +02:00
Merge pull request #304 from h3ndry/main
feat(add-pfn): add: pub fn …(…) { … }
This commit is contained in:
commit
51188c848a
1 changed files with 9 additions and 0 deletions
|
@ -264,6 +264,15 @@
|
|||
"body": ["extern \"C\" {", " ${2:// add code here}", "}"],
|
||||
"description": "extern \"C\" { … }"
|
||||
},
|
||||
"pfn": {
|
||||
"prefix": "pfn",
|
||||
"body": [
|
||||
"pub fn ${1:name}(${2:arg}: ${3:Type}) -> ${4:RetType} {",
|
||||
" ${5:unimplemented!();}",
|
||||
"}"
|
||||
],
|
||||
"description": "pub fn …(…) { … }"
|
||||
},
|
||||
"fn": {
|
||||
"prefix": "fn",
|
||||
"body": [
|
||||
|
|
Loading…
Reference in a new issue