From fb5eb1f3fd263fcad44844e4db8f0c35e722c8ce Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Tue, 10 Aug 2010 19:33:52 +0000 Subject: [PATCH] Corrected error in variable declaration for example StringLength --- build/shared/examples/8.Strings/StringLength/StringLength.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/shared/examples/8.Strings/StringLength/StringLength.pde b/build/shared/examples/8.Strings/StringLength/StringLength.pde index 596280190..d9653d5ae 100644 --- a/build/shared/examples/8.Strings/StringLength/StringLength.pde +++ b/build/shared/examples/8.Strings/StringLength/StringLength.pde @@ -10,7 +10,7 @@ This example code is in the public domain. */ String txtMsg = ""; // a string for incoming text -int lastStringLength = txtString.length(); //previous lenngth of the String +int lastStringLength = txtMsg.length(); // previous length of the String void setup() { // open the serial port: