From 729765383d5b6dbf1ec5ff81bdcf842aca13c1ec Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Fri, 25 Jun 2021 23:11:35 +0200 Subject: [PATCH] fix some typos --- README.md | 4 ++-- benches/netbench/README.md | 8 ++++---- benches/netbench/src/config.rs | 6 +++--- hermit-abi/src/lib.rs | 2 +- hermit-sys/Cargo.toml | 2 +- hermit-sys/build.rs | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b7c3ce41e..4acd7c159 100644 --- a/README.md +++ b/README.md @@ -214,11 +214,11 @@ You can now access the files in SHARED_DIRECTORY under the virtiofs tag like `/m ## Use RustyHermit for C/C++, Go, and Fortran applications -If you are interested to build C/C++, Go, and Fortran applications on top of a Rust-based library operating systen, please take a look at [https://github.com/hermitcore/hermit-playground](https://github.com/hermitcore/hermit-playground). +If you are interested to build C/C++, Go, and Fortran applications on top of a Rust-based library operating system, please take a look at [https://github.com/hermitcore/hermit-playground](https://github.com/hermitcore/hermit-playground). ## Missing features -* Multikernel support (might be comming) +* Multikernel support (might be coming) * Virtio support (partly available) * Network support (partly available) diff --git a/benches/netbench/README.md b/benches/netbench/README.md index 340a6ee45..f32d115ef 100644 --- a/benches/netbench/README.md +++ b/benches/netbench/README.md @@ -28,13 +28,13 @@ For both programs, you can run them the same way. We will use `bw` as example. T #### Instructions 1) Run server -- Go on the machine where you wanna launch the server (or ssh into it) +- Go on the machine where you want to launch the server (or ssh into it) - Open a terminal - `cd` into the inner `code` folder -- Run `cargo run --bin server-bw --release` (or compile and run, meaning `cargo build --bin server-bw --release` and once compiled `./target/release/server-bw`). You can specify the port you wanna listen on with `-p `. +- Run `cargo run --bin server-bw --release` (or compile and run, meaning `cargo build --bin server-bw --release` and once compiled `./target/release/server-bw`). You can specify the port you want to listen on with `-p `. 2) Run client -- Go on the machine where you wanna launch the client (or ssh into it) +- Go on the machine where you want to launch the client (or ssh into it) - Open a terminal - `cd` into the inner `code` folder - Run `cargo run --bin client-bw --release` (or compile and run, meaning `cargo build --bin client-bw --release` and once compiled `./target/release/client-bw`). You can specify a bunch of parameters. Run the program with the `-h` option to see available params. Make sure you specify the right address and port to connect to the server, using parameters `-a
-p `. @@ -52,7 +52,7 @@ The config file is important because it will contain a bunch of things like mach #### Prerequisites -- Make sure you can ssh into the machines you wanna use for your benchmark +- Make sure you can ssh into the machines you want to use for your benchmark. - Make sure you have set up the ssh connections correctly and have the machines in your known host and have the ssh keys somewhere in your pc (or the machine you will start the script from). #### Instructions diff --git a/benches/netbench/src/config.rs b/benches/netbench/src/config.rs index 5800efe52..5ea92957f 100644 --- a/benches/netbench/src/config.rs +++ b/benches/netbench/src/config.rs @@ -32,7 +32,7 @@ pub fn parse_config() -> Config { .short("p") .long("port") .value_name("port") - .help("port to connect to, like port 7878 if you wanna connect to 127.0.0.1:7878") + .help("port to connect to, like port 7878 if you want to connect to 127.0.0.1:7878") .takes_value(true) .default_value("7878"), ) @@ -113,14 +113,14 @@ pub fn parse_config() -> Config { // Don't kill machines if n_bytes > 100_000_000 { panic!( - "More than 100 MB per round is probably too much data you wanna send, \ + "More than 100 MB per round is probably too much data you want to send, \ you may kill one of the machines. Try with maybe 100MB but more rounds" ) } // Very improbable case error handling if (n_bytes * 1000000) as u128 * n_rounds as u128 > u64::max_value().into() { - panic!("There's gonna be too much data. Make sure n_bytes * n_rounds is < u128::MAX") + panic!("There's going to be too much data. Make sure n_bytes * n_rounds is < u128::MAX") } Config { diff --git a/hermit-abi/src/lib.rs b/hermit-abi/src/lib.rs index 9151faf56..7bb4a4cb0 100644 --- a/hermit-abi/src/lib.rs +++ b/hermit-abi/src/lib.rs @@ -119,7 +119,7 @@ pub fn isatty(_fd: libc::c_int) -> bool { false } -/// intialize the network stack +/// initialize the network stack pub fn network_init() -> i32 { unsafe { sys_network_init() } } diff --git a/hermit-sys/Cargo.toml b/hermit-sys/Cargo.toml index c46fe76a9..57c7c23b1 100644 --- a/hermit-sys/Cargo.toml +++ b/hermit-sys/Cargo.toml @@ -15,7 +15,7 @@ documentation = "https://hermitcore.github.io/rusty-hermit/hermit_sys" [features] default = ["pci", "acpi", "smp", "fsgsbase"] -# controlls whether RustyHermit is build with -Z instrument-mcount +# controls whether RustyHermit is build with -Z instrument-mcount instrument = ["rftrace"] trace = [] fsgsbase = [] diff --git a/hermit-sys/build.rs b/hermit-sys/build.rs index 770e2822a..11a2c86c8 100644 --- a/hermit-sys/build.rs +++ b/hermit-sys/build.rs @@ -190,7 +190,7 @@ fn rename_symbol(symbol: impl AsRef, lib: impl AsRef) { .arg(lib.as_ref()) .status() .expect("failed to execute llvm-objcopy"); - assert!(status.success(), "llvm-objcopy was not sucessful"); + assert!(status.success(), "llvm-objcopy was not successful"); } #[cfg(all(not(feature = "rustc-dep-of-std"), not(feature = "with_submodule")))]