Skip to content

Commit e576e84

Browse files
committed
Fix Typo in "Sending Bytes"
1 parent 66af669 commit e576e84

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# NetHex
22
A small rust utility for dumping data-layer network traffic
3+

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ use clap::{Arg, App, value_t};
66

77
use pnet::datalink::Channel::Ethernet;
88
use pnet::datalink::{self, NetworkInterface, Config};
9-
// use pnet::packet::ethernet::{EthernetPacket, MutableEthernetPacket};
10-
// use pnet::packet::{MutablePacket, Packet};
119

1210
use std::io;
1311
use std::time::{Duration, Instant};
@@ -34,7 +32,7 @@ fn main() {
3432
.short("t")
3533
.long("timeout")
3634
.takes_value(true)
37-
.help("Timeout before exiting the program. Default no timeout"))
35+
.help("Time before exiting the program"))
3836
.arg(Arg::with_name("count")
3937
.short("c")
4038
.long("count")
@@ -93,7 +91,7 @@ fn main() {
9391
Err(e) => {println!("{}", e);
9492
std::process::exit(1);},
9593
};
96-
println!("Sending bytes; {:X?}", bytes);
94+
println!("Sending bytes: {:X?}", bytes);
9795
tx.send_to(&bytes, None);
9896
}
9997

0 commit comments

Comments
 (0)