diff --git a/crates/cli/tests/cli_run.rs b/crates/cli/tests/cli_run.rs index 32d8180e0d..5fcb3dccc8 100644 --- a/crates/cli/tests/cli_run.rs +++ b/crates/cli/tests/cli_run.rs @@ -410,7 +410,7 @@ mod cli_run { // expected_ending:"Roc <3 C!\n", // use_valgrind: true, // }, - platformSwitchingRust:"platform-switching/rust-platform" => Example { + platformSwitchingRust:"platform-switching" => Example { filename: "rocLovesRust.roc", executable_filename: "rocLovesRust", stdin: &[], diff --git a/examples/platform-switching/rust-platform/rocLovesRust.roc b/examples/platform-switching/rocLovesRust.roc similarity index 64% rename from examples/platform-switching/rust-platform/rocLovesRust.roc rename to examples/platform-switching/rocLovesRust.roc index ce0da7a63c..7d9c8da26b 100644 --- a/examples/platform-switching/rust-platform/rocLovesRust.roc +++ b/examples/platform-switching/rocLovesRust.roc @@ -1,5 +1,5 @@ app "rocLovesRust" - packages { pf: "main.roc" } + packages { pf: "rust-platform/main.roc" } imports [] provides [main] to pf diff --git a/getting_started/linux_x86.md b/getting_started/linux_x86.md index fdedf4853a..d69da164fd 100644 --- a/getting_started/linux_x86.md +++ b/getting_started/linux_x86.md @@ -38,7 +38,7 @@ ```sh # Note: If you installed Rust in this terminal session, you'll need to open a new one first! - ./roc examples/platform-switching/rust-platform/rocLovesRust.roc + ./roc examples/platform-switching/rocLovesRust.roc ./roc examples/platform-switching/zig-platform/rocLovesZig.roc diff --git a/getting_started/macos_apple_silicon.md b/getting_started/macos_apple_silicon.md index de6c2b6332..56a5510554 100644 --- a/getting_started/macos_apple_silicon.md +++ b/getting_started/macos_apple_silicon.md @@ -34,7 +34,7 @@ ```sh # Note: If you installed rust in this terminal session, you'll need to open a new one first! - ./roc examples/platform-switching/rust-platform/rocLovesRust.roc + ./roc examples/platform-switching/rocLovesRust.roc ./roc examples/platform-switching/zig-platform/rocLovesZig.roc diff --git a/getting_started/macos_x86.md b/getting_started/macos_x86.md index fc88823b2f..31f5fabf07 100644 --- a/getting_started/macos_x86.md +++ b/getting_started/macos_x86.md @@ -34,7 +34,7 @@ ```sh # Note: If you installed rust in this terminal session, you'll need to open a new one first! - ./roc examples/platform-switching/rust-platform/rocLovesRust.roc + ./roc examples/platform-switching/rocLovesRust.roc ./roc examples/platform-switching/zig-platform/rocLovesZig.roc diff --git a/getting_started/other.md b/getting_started/other.md index 69b529c0bd..fcf40a75af 100644 --- a/getting_started/other.md +++ b/getting_started/other.md @@ -7,7 +7,7 @@ 1. Run examples: ```sh - cargo run examples/platform-switching/rust-platform/rocLovesRust.roc + cargo run examples/platform-switching/rocLovesRust.roc # This requires installing the Zig compiler, too. cargo run examples/platform-switching/zig-platform/rocLovesZig.roc