Skip to content

Commit

Permalink
Improve snippets description. (#4431)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbens-starkware authored Nov 20, 2023
1 parent 5684a14 commit 13f4c6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vscode-cairo/snippets/cairo.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"body": ["struct $1 {", "\t$2: ${3},", "}"],
"description": "Creates a struct"
},
"Creates the event dictionary": {
"Creates the contract's event set": {
"prefix": "event",
"body": [
"#[event]",
Expand All @@ -53,7 +53,7 @@
"\t$2: $2,",
"}"
],
"description": "Creates an event"
"description": "Creates the contract's event set"
},
"Creates an event": {
"prefix": "event",
Expand Down Expand Up @@ -83,7 +83,7 @@
"\t$2",
"}"
],
"description": "Creates an interface"
"description": "Creates a starknet interface"
},
"Creates a view function": {
"prefix": ["view", "fn"],
Expand Down Expand Up @@ -132,7 +132,7 @@
"\tfn $6(self: @TContractState, $7: ${8}) -> ${9};",
"}"
],
"description": "Creates a trait"
"description": "Creates a trait for ContractState"
},
"Impl a trait": {
"prefix": "impl",
Expand Down Expand Up @@ -190,7 +190,7 @@
"Creates an assertion": {
"prefix": "assert",
"body": ["assert($1, '$2');"],
"description": "Creates an simple test"
"description": "Creates an assertion"
},
"Creates a default contract": {
"prefix": "contract",
Expand All @@ -213,7 +213,7 @@
"Creates an assertion with macro": {
"prefix": "assert!",
"body": ["assert!($1);"],
"description": "Creates an simple test"
"description": "Creates an assert! macro"
},
"Creates an equality assertion with macro": {
"prefix": "assert_eq!",
Expand All @@ -228,7 +228,7 @@
"Creates panic": {
"prefix": "panic!",
"body": ["panic!(\"$1\");"],
"description": "Creates panic"
"description": "Creates a panic! macro"
},
"Creates a String using interpolation of expressions": {
"prefix": "format!",
Expand Down

0 comments on commit 13f4c6a

Please sign in to comment.