docs: fix spelling errors

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Fathi Boudra
2016-04-07 12:22:52 +03:00
committed by Mihai Tudor Panu
parent c7b5204fe4
commit dc8be495a9
29 changed files with 37 additions and 37 deletions

View File

@ -135,7 +135,7 @@ int main (int argc, char **argv)
if (rv > 0)
cout << "Received: " << radioBuffer << endl;
if (rv < 0) // some sort of read error occured
if (rv < 0) // some sort of read error occurred
{
cerr << "Port read error." << endl;
break;

View File

@ -77,7 +77,7 @@ int main (int argc, char **argv)
if (rv > 0)
write(1, nmeaBuffer, rv);
if (rv < 0) // some sort of read error occured
if (rv < 0) // some sort of read error occurred
{
cerr << "Port read error." << endl;
break;

View File

@ -57,7 +57,7 @@ public class AM2315Example {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -42,7 +42,7 @@ public class Ad8232Example {
Thread.sleep(1);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following error has occured: "+e.getMessage());
System.out.println("The following error has occurred: "+e.getMessage());
}
}
}

View File

@ -38,7 +38,7 @@ public class Apds9002 {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -59,7 +59,7 @@ public class Gp2y0aExample {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -39,7 +39,7 @@ public class GroveEmg {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
}

View File

@ -41,7 +41,7 @@ public class GroveGsr {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -38,7 +38,7 @@ public class GroveO2Example {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception has occured: "+e.getMessage());
System.out.println("The following exception has occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -42,7 +42,7 @@ public class HP20xExample {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -39,7 +39,7 @@ public class Th02Example {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception has occured: "+e.getMessage());
System.out.println("The following exception has occurred: "+e.getMessage());
}
}
}

View File

@ -52,7 +52,7 @@ public class Tsl2561 {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -43,7 +43,7 @@ public class WaterLevelSensor {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("The following exception occured: "+e.getMessage());
System.out.println("The following exception occurred: "+e.getMessage());
}
}
//! [Interesting]

View File

@ -128,7 +128,7 @@ function runRadio()
console.log("Received: " + resultStr);
}
if (rv < 0) // some sort of read error occured
if (rv < 0) // some sort of read error occurred
{
console.log("Port read error.");
return;

View File

@ -66,7 +66,7 @@ function getGPSInfo()
process.stdout.write(GPSData)
}
if (rv < 0) // some sort of read error occured
if (rv < 0) // some sort of read error occurred
{
console.log("Port read error.");
process.exit(0);

View File

@ -123,7 +123,7 @@ else:
resultStr += radioBuffer.__getitem__(x)
print "Received:", resultStr
if (rv < 0): # some sort of read error occured
if (rv < 0): # some sort of read error occurred
print "Port read error."
sys.exit(0)
myCounter += 1

View File

@ -73,7 +73,7 @@ def getGPSInfo():
GPSData += nmeaBuffer.__getitem__(x)
sys.stdout.write(GPSData)
if (rv < 0): # some sort of read error occured
if (rv < 0): # some sort of read error occurred
print "Port read error."
sys.exit(0)