Skip to content

Don't use reserved name (this) as a variable name in the example code #532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isAlpha.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isAlpha(thisChar)

[source,arduino]
----
if (isAlpha(this)) // tests if this is a letter
if (isAlpha(myChar)) // tests if myChar is a letter
{
Serial.println("The character is a letter");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isAlphaNumeric.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isAlphaNumeric(thisChar)

[source,arduino]
----
if (isAlphaNumeric(this)) // tests if this isa letter or a number
if (isAlphaNumeric(myChar)) // tests if myChar isa letter or a number
{
Serial.println("The character is alphanumeric");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isAscii.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isAscii(thisChar)

[source,arduino]
----
if (isAscii(this)) // tests if this is an Ascii character
if (isAscii(myChar)) // tests if myChar is an Ascii character
{
Serial.println("The character is Ascii");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isControl.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isControl(thisChar)

[source,arduino]
----
if (isControl(this)) // tests if this is a control character
if (isControl(myChar)) // tests if myChar is a control character
{
Serial.println("The character is a control character");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isDigit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isDigit(thisChar)

[source,arduino]
----
if (isDigit(this)) // tests if this is a digit
if (isDigit(myChar)) // tests if myChar is a digit
{
Serial.println("The character is a number");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isGraph.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isGraph(thisChar)

[source,arduino]
----
if (isGraph(this)) // tests if this is a printable character but not a blank space.
if (isGraph(myChar)) // tests if myChar is a printable character but not a blank space.
{
Serial.println("The character is printable");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isHexadecimalDigit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ isHexadecimalDigit(thisChar)

[source,arduino]
----
if (isHexadecimalDigit(this)) // tests if this is an hexadecimal digit
if (isHexadecimalDigit(myChar)) // tests if myChar is an hexadecimal digit
{
Serial.println("The character is an hexadecimal digit");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isLowerCase.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isLowerCase(thisChar)

[source,arduino]
----
if (isLowerCase(this)) // tests if this is a lower case letter
if (isLowerCase(myChar)) // tests if myChar is a lower case letter
{
Serial.println("The character is lower case");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isPrintable.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isPrintable(thisChar)

[source,arduino]
----
if (isPrintable(this)) // tests if this is printable char
if (isPrintable(myChar)) // tests if myChar is printable char
{
Serial.println("The character is printable");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isPunct.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isPunct(thisChar)

[source,arduino]
----
if (isPunct(this)) // tests if this is a punctuation character
if (isPunct(myChar)) // tests if myChar is a punctuation character
{
Serial.println("The character is a punctuation");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isSpace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isSpace(thisChar)

[source,arduino]
----
if (isSpace(this)) // tests if this is the space character
if (isSpace(myChar)) // tests if myChar is the space character
{
Serial.println("The character is a space");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isUpperCase.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ isUpperCase(thisChar)

[source,arduino]
----
if (isUpperCase(this)) // tests if this is an upper case letter
if (isUpperCase(myChar)) // tests if myChar is an upper case letter
{
Serial.println("The character is upper case");
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Characters/isWhitespace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ isWhitespace(thisChar)

[source,arduino]
----
if (isWhitespace(this)) // tests if this is a white space
if (isWhitespace(myChar)) // tests if myChar is a white space
{
Serial.println("The character is a white space");
}
Expand Down