Skip to content

Commit 52aa59f

Browse files
authored
Merge pull request #759 from jfjlaros/patch-1
Fixed erroneous example.
2 parents 4ae64ca + 98e12e5 commit 52aa59f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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 == TRUE) {
63-
doSomething;
62+
if (distance > 10) {
63+
moveCloser();
6464
}
6565
```
6666

@@ -136,4 +136,4 @@ Here's a good title block:
136136

137137
For digital input switches, the default is to use a pulldown resistor on the switch rather than a pullup. That way, the logic of a switch's interaction makes sense to the non-engineer.
138138

139-
Keep your circuits simple. For example, bypass capacitors are handy, but most simple inputs will work without them. If a component is incidental, explain it later.
139+
Keep your circuits simple. For example, bypass capacitors are handy, but most simple inputs will work without them. If a component is incidental, explain it later.

0 commit comments

Comments
 (0)