mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: add syntax highlighting to a code snippet in the tutorials (#16331)
This commit is contained in:
parent
4cabf709e1
commit
5933ab7158
@ -108,18 +108,18 @@ int usersapi_get_number_of_users() {
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
```v oksyntax
|
||||
module usersapi
|
||||
|
||||
fn C.usersapi_create_user(name &i8, password &i8, age int)
|
||||
|
||||
pub fn f create_user(name &i8, password &i8, age int) {
|
||||
pub fn create_user(name &i8, password &i8, age int) {
|
||||
C.usersapi_create_user(name, password, age)
|
||||
}
|
||||
|
||||
fn C.usersapi_get_number_of_users() int
|
||||
|
||||
pub fn f get_number_of_users() int {
|
||||
pub fn get_number_of_users() int {
|
||||
return C.usersapi_get_number_of_users()
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user