Fix syntax bugs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Functions
|
||||
description: Function declarations, self parameters, return types, and unsafe functions.
|
||||
icon: Function
|
||||
icon: SquareFunction
|
||||
---
|
||||
|
||||
```mist
|
||||
@@ -48,7 +48,7 @@ Functions use **Allman brace style** (opening brace on the next line).
|
||||
|
||||
### Self Parameter
|
||||
|
||||
Methods can take `self`, `&self`, `&mut self`, or `self` with lifetimes:
|
||||
Methods can take `self`, `mut self`, `&self`, `&mut self` additionally with lifetimes:
|
||||
|
||||
```mist
|
||||
pub void set_value(&mut self, i32 v)
|
||||
|
||||
Reference in New Issue
Block a user