Fix typos

This commit is contained in:
Berkus Decker 2019-03-10 15:12:51 +02:00
parent 0cbda1201a
commit e5ab830594
2 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ impl ConsoleOps for MiniUart {
/// Display a string
fn puts(&self, string: &str) {
for c in string.chars() {
// convert newline to carrige return + newline
// convert newline to carriage return + newline
if c == '\n' {
self.putc('\r')
}
@ -251,7 +251,7 @@ impl ConsoleOps for MiniUart {
// read it and return
let mut ret = self.AUX_MU_IO.get() as u8 as char;
// convert carrige return to newline
// convert carriage return to newline
if ret == '\r' {
ret = '\n'
}

View File

@ -242,7 +242,7 @@ impl ConsoleOps for PL011Uart {
/// Display a string
fn puts(&self, string: &str) {
for c in string.chars() {
// convert newline to carrige return + newline
// convert newline to carriage return + newline
if c == '\n' {
self.putc('\r')
}
@ -259,7 +259,7 @@ impl ConsoleOps for PL011Uart {
// read it and return
let mut ret = self.DR.get() as u8 as char;
// convert carrige return to newline
// convert carriage return to newline
if ret == '\r' {
ret = '\n'
}