Merge pull request #304 from h3ndry/main

feat(add-pfn): add: pub fn …(…) { … }
This commit is contained in:
Rafael Madriz 2023-06-14 19:40:35 -03:00 committed by GitHub
commit 51188c848a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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": [