From 5933ab71589d3fc817b2f7db5d73adff91f1533b Mon Sep 17 00:00:00 2001 From: Ted Stoychev Date: Fri, 4 Nov 2022 17:01:25 +0200 Subject: [PATCH] docs: add syntax highlighting to a code snippet in the tutorials (#16331) --- .../README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tutorials/C2V_translating_simple_programs_and_DOOM/README.md b/tutorials/C2V_translating_simple_programs_and_DOOM/README.md index 817bf68b1..6b6a46a87 100644 --- a/tutorials/C2V_translating_simple_programs_and_DOOM/README.md +++ b/tutorials/C2V_translating_simple_programs_and_DOOM/README.md @@ -108,19 +108,19 @@ 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) { - C.usersapi_create_user(name, password, age) +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 { - return C.usersapi_get_number_of_users() +pub fn get_number_of_users() int { + return C.usersapi_get_number_of_users() } ``` @@ -335,4 +335,4 @@ I will also be publishing the same demo with Sqlite and Quake translation. It's a huge milestone for V and gives V developers access to huge amounts of software written in C. -We're very excited about this release. +We're very excited about this release. \ No newline at end of file -- 2.30.2