Fix typos.

This commit is contained in:
mattbk
2026-09-07 15:06:01 -05:00
parent 8b2804fe1f
commit 24100ffb26
+3 -4
View File
@@ -7,7 +7,7 @@ use chrono::Local;
/// Command-line arguments using Clap.
#[derive(Parser, Debug)]
#[command(author, version, about = "A tool for echoing latitude and longitude from a GPS USB dongle..")]
#[command(author, version, about = "A tool for echoing latitude and longitude from a GPS USB dongle.")]
struct Cli {
/// COM port
@@ -19,13 +19,12 @@ fn main() {
let cli = Cli::parse();
let com = match cli.com {
Some(com) => com,
None => {
// https://github.com/serialport/serialport-rs#listing-available-ports
let ports = serialport::available_ports().expect("No ports found!");
println!("Avaiable Ports:");
println!("Available Ports:");
for p in ports {
println!("{}", p.port_name);
}