Skip to content

Commit 077dcd6

Browse files
Addisu Z. Taddeseahcorde
andauthored
Apply suggestions from code review
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent 0cedd81 commit 077dcd6

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

tutorials/cppgetstarted.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int main()
6969

7070
To compile the code create a `CMakeLists.txt`:
7171

72-
```
72+
```{.bash}
7373
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
7474
project(gz-math-cpp-example)
7575
@@ -81,20 +81,20 @@ target_link_libraries(gz-math-example PUBLIC gz-math8::gz-math8)
8181

8282
Compile the example:
8383

84-
```
84+
```{.bash}
8585
mkdir build && cd build
8686
cmake ..
8787
```
8888

8989
For Unix systems:
90-
```
90+
91+
```{.bash}
9192
make
92-
```
9393
9494
For Windows systems:
95-
```
95+
96+
```{.bash}
9697
cmake --build . --config Release
97-
```
9898
9999
Run the example:
100100
@@ -107,7 +107,6 @@ Output should be:
107107
Distance from 1 3 5 to 2 4 6 is 1.73205
108108
```
109109

110-
111110
## Bonus: Vector2 Example
112111

113112
The following is an example program that uses Vector2 to perform some simple

0 commit comments

Comments
 (0)