FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix highlight · devKitchen-codeJS/btcpp_website@bc2c2ba · GitHub

This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit bc2c2ba

Browse files
committed
fix highlight
1 parent 365a69d commit bc2c2ba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/tutorial-advanced/asynchronous_nodes.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ This may return SUCCESS immediately if the sleep time is 0 or will return RUNNIN
127127
128128
A **wrong** way to implement the `SleepNode` would be this one:
129129
130-
```c++
130+
```cpp
131131
// This is the synchronous version of the Node. Probably not what we want.
132132
class BadSleepNode : public BT::ActionNodeBase
133133
{
@@ -175,7 +175,7 @@ the `halt()`method is invoked.
175175
For this reason, users are usually discouraged from using `BT::ThreadedAction` as a
176176
base class. Let's have a look again at the SleepNode.
177177

178-
```c++
178+
```cpp
179179
// This will spawn its own thread. But it still has problems when halted
180180
class BadSleepNode : public BT::ThreadedAction
181181
{
@@ -204,7 +204,7 @@ class BadSleepNode : public BT::ThreadedAction
204204
205205
A correct version would be:
206206
207-
```c++
207+
```cpp
208208
// I will create my own thread here, for no good reason
209209
class ThreadedSleepNode : public BT::ThreadedAction
210210
{

‎versioned_docs/version-3.8/tutorial-advanced/asynchronous_nodes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ This may return SUCCESS immediately if the sleep time is 0 or will return RUNNIN
127127
128128
A **wrong** way to implement the `SleepNode` would be this one:
129129
130-
```c++
130+
```cpp
131131
// This is the synchronous version of the Node. Probably not what we want.
132132
class BadSleepNode : public BT::ActionNodeBase
133133
{

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL