Arduino/build/shared/examples/08.Strings/StringLength/StringLength.ino
has a typo on line 29.
Serial.ptintln();
should be
Serial.println();
Comment #1
Posted on Sep 4, 2012 by Quick KangarooI'm not seeing that in .../examples/8.Strings/StringLength.
http://arduino.cc/en/Tutorial/StringLengthTrim also looks correct.
You have left out the new issue template items like:
What version of the Arduino software are you using? On what operating system?
Comment #2
Posted on Sep 4, 2012 by Helpful PandaIt's in the github account: https://github.com/arduino/Arduino/blob/master/build/shared/examples/08.Strings/StringLength/StringLength.ino#L26
Also in the source code download: http://arduino.cc/en/Main/Software
in windows, mac, and linux downloads too. All versions newer than April 6, 2012.
Here is the exact commit where the typo showed up: https://github.com/arduino/Arduino/commit/412f261e41e2ff26a63876a3dd56a02917c575ef
Comment #3
Posted on Sep 4, 2012 by Helpful PandaThe error is right on the page at: http://arduino.cc/en/Tutorial/StringLengthTrim
" Serial.println("\n\nString length():"); Serial.ptintln(); }"
is incorrect
Comment #4
Posted on Sep 4, 2012 by Quick KangarooPlease accept my apology. The web page is indeed incorrect. The version I have on Mac OSX in Arduino.app/Contents/Resources/Java/examples/8.Strings/StringLength/ from Apr 8 18:02 is quite different from the web page! Arrgh!
Status: New
Labels:
Type-Defect
Priority-Medium