Skip to content

Commit 6628bb0

Browse files
committed
Corrected an error in StringComparisonOperators example
1 parent 47d3b65 commit 6628bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/shared/examples/8.Strings/StringComparisonOperators/StringComparisonOperators.pde

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ void loop() {
114114
stringTwo += analogRead(A5);
115115

116116
if (stringOne.compareTo(stringTwo) < 0 ) {
117-
Serial.println(stringOne + " comes after " + stringTwo);
117+
Serial.println(stringOne + " comes before " + stringTwo);
118118
}
119119
else {
120-
Serial.println(stringOne + " comes before " + stringTwo);
120+
Serial.println(stringOne + " comes after " + stringTwo);
121121

122122
}
123123
}

0 commit comments

Comments
 (0)