Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 98e12e5

Browse files
committed
Modified example.
At the request of @karlsoderby.
1 parent ffbfa50 commit 98e12e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎content/learn/08.contributions/00.arduino-writing-style-guide/arduino-writing-style-guide.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Put your `setup()` and your `loop()` at the beginning of the program. They help
5353
Use verbose if statements. For simplicity to the beginning reader, use the block format for everything, i.e. avoid this:
5454

5555
```
56-
if (somethingIsTrue) doSomething;
56+
if (distance > 10) moveCloser();
5757
```
5858

5959
Instead, use this:
6060

6161
```
62-
if (somethingIsTrue) {
63-
doSomething;
62+
if (distance > 10) {
63+
moveCloser();
6464
}
6565
```
6666

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /