Skip to content

Commit 5dba6ce

Browse files
committed
Don't use reserved name as a variable name in the example code
this is a reserved name and may not be used as a variable name. Attempts to do so result in a somewhat confusing compilation error.
1 parent afde77c commit 5dba6ce

13 files changed

+13
-13
lines changed

Language/Functions/Characters/isAlpha.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isAlpha(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isAlpha(this)) // tests if this is a letter
53+
if (isAlpha(myChar)) // tests if myChar is a letter
5454
{
5555
Serial.println("The character is a letter");
5656
}

Language/Functions/Characters/isAlphaNumeric.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isAlphaNumeric(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isAlphaNumeric(this)) // tests if this isa letter or a number
53+
if (isAlphaNumeric(myChar)) // tests if myChar isa letter or a number
5454
{
5555
Serial.println("The character is alphanumeric");
5656
}

Language/Functions/Characters/isAscii.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isAscii(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isAscii(this)) // tests if this is an Ascii character
53+
if (isAscii(myChar)) // tests if myChar is an Ascii character
5454
{
5555
Serial.println("The character is Ascii");
5656
}

Language/Functions/Characters/isControl.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isControl(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isControl(this)) // tests if this is a control character
53+
if (isControl(myChar)) // tests if myChar is a control character
5454
{
5555
Serial.println("The character is a control character");
5656
}

Language/Functions/Characters/isDigit.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isDigit(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isDigit(this)) // tests if this is a digit
53+
if (isDigit(myChar)) // tests if myChar is a digit
5454
{
5555
Serial.println("The character is a number");
5656
}

Language/Functions/Characters/isGraph.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isGraph(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isGraph(this)) // tests if this is a printable character but not a blank space.
53+
if (isGraph(myChar)) // tests if myChar is a printable character but not a blank space.
5454
{
5555
Serial.println("The character is printable");
5656
}

Language/Functions/Characters/isHexadecimalDigit.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ isHexadecimalDigit(thisChar)
5252

5353
[source,arduino]
5454
----
55-
if (isHexadecimalDigit(this)) // tests if this is an hexadecimal digit
55+
if (isHexadecimalDigit(myChar)) // tests if myChar is an hexadecimal digit
5656
{
5757
Serial.println("The character is an hexadecimal digit");
5858
}

Language/Functions/Characters/isLowerCase.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isLowerCase(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isLowerCase(this)) // tests if this is a lower case letter
53+
if (isLowerCase(myChar)) // tests if myChar is a lower case letter
5454
{
5555
Serial.println("The character is lower case");
5656
}

Language/Functions/Characters/isPrintable.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isPrintable(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isPrintable(this)) // tests if this is printable char
53+
if (isPrintable(myChar)) // tests if myChar is printable char
5454
{
5555
Serial.println("The character is printable");
5656
}

Language/Functions/Characters/isPunct.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isPunct(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isPunct(this)) // tests if this is a punctuation character
53+
if (isPunct(myChar)) // tests if myChar is a punctuation character
5454
{
5555
Serial.println("The character is a punctuation");
5656
}

Language/Functions/Characters/isSpace.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isSpace(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isSpace(this)) // tests if this is the space character
53+
if (isSpace(myChar)) // tests if myChar is the space character
5454
{
5555
Serial.println("The character is a space");
5656
}

Language/Functions/Characters/isUpperCase.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ isUpperCase(thisChar)
4646

4747
[source,arduino]
4848
----
49-
if (isUpperCase(this)) // tests if this is an upper case letter
49+
if (isUpperCase(myChar)) // tests if myChar is an upper case letter
5050
{
5151
Serial.println("The character is upper case");
5252
}

Language/Functions/Characters/isWhitespace.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ isWhitespace(thisChar)
5050

5151
[source,arduino]
5252
----
53-
if (isWhitespace(this)) // tests if this is a white space
53+
if (isWhitespace(myChar)) // tests if myChar is a white space
5454
{
5555
Serial.println("The character is a white space");
5656
}

0 commit comments

Comments
 (0)