Skip to content

Commit 7b119eb

Browse files
committed
Fix syntax for comments and detach
* Fix syntax for comments documentation. * Fix syntax for detach keyword documentation.
1 parent 5673d52 commit 7b119eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

basic_concepts/comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Lines starting with the character '#' are comments.
88

99
```cpp
1010
# Function "compare". Sets int variable "result" to 1 if leftValue equals rightValue. Otherwise, sets "result" to 0.
11-
function compare : with int as leftValue, with int as rightValue -> result;
11+
function compare : int as leftValue, int as rightValue -> result;
1212
if leftValue == rightValue;
1313
result = 1;
1414
else;

keywords/keyword_detach.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Separates the thread of execution from the current thread, allowing execution to
99
## Example
1010

1111
```cpp
12-
function calculateSumAndPrint : using valArray, with int as startIndex, with int as finalIndex;
12+
function calculateSumAndPrint : using valArray, int as startIndex, int as finalIndex;
1313
int sum = 0;
1414

1515
while startIndex < finalIndex;

0 commit comments

Comments
 (0)