We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c921648 + af5396c commit bd7b8e9Copy full SHA for bd7b8e9
1 file changed
data/rust.json
@@ -174,6 +174,23 @@
174
"code": "(i32, f64, u8)"
175
}
176
]
177
+ },
178
+ {
179
+ "title": "Function",
180
+ "items": [
181
182
+ "definition": "Main Function",
183
+ "code": "fn main() {\n\tprintln!(\"Hello, world!\");\n}"
184
185
186
+ "definition": "Create Custom Function",
187
+ "code": "fn function_name() {\n\t//code area\n"
188
189
190
+ "definition": "Function call with Parameters Passing",
191
+ "code": "fn main() {\n\tanother_function(5);\n}\n\nfn another_function(x: i32) {\n\tprintln!(\"The value of x is: {x}\");\n"
192
193
+ ]
194
+ }
195
-}
196
+}
0 commit comments