Skip to content

Commit

Permalink
Update texts
Browse files Browse the repository at this point in the history
  • Loading branch information
karip committed Feb 27, 2024
1 parent 65ec17b commit e203391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ endianness and pointer width.
This repository also shows how to use GitHub actions to test
the code on 64-bit x86_64 little-endian and 32-bit PowerPC big-endian CPUs.
It uses [setup-cross-toolchain-action](https://github.com/marketplace/actions/setup-toolchains-for-cross-compilation-and-cross-testing-for-rust) to run the actions for `x86_64-unknown-linux-gnu` and `powerpc-unknown-linux-gnu`.
See the [rust.yml](.github/workflows/rust.yml) file how the action is configured.
The [rust.yml](.github/workflows/rust.yml) file shows how the action is configured.

## Running

> cargo run
CPU Architecture: aarch64
CPU architecture: aarch64
Endianness: little-endian
Pointer width: 64-bit

Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ mod tests {

#[test]
fn print_values() {
println!("CPU Architecture: {}", target_arch());
println!("-*-*-*-");
println!("CPU architecture: {}", target_arch());
println!("Endianness: {}", endianness());
println!("Pointer width: {}-bit", pointer_width());
}
Expand Down

0 comments on commit e203391

Please sign in to comment.