Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/ports/rs_port/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export function sum(a: number, b: number): number {

`main.rs`
``` rust
use metacall::{switch, metacall, loaders};
use metacall::{initialize, metacall, load};

fn main() {
// Initialize MetaCall at the top
let _metacall = switch::initialize().unwrap();
let _metacall = initialize().unwrap();

// Load the file
load::from_single_file("ts", "sum.ts").unwrap();
Expand Down
4 changes: 2 additions & 2 deletions source/ports/rs_port/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
//! Now let's jump into Rust:
//!
//! ```
//! use metacall::{switch, metacall, loaders};
//! use metacall::{initialize, metacall, load};
//!
//! fn main() {
//! // Initialize MetaCall at the top
//! let _metacall = switch::initialize().unwrap();
//! let _metacall = initialize().unwrap();
//!
//! // Load the file (Checkout the loaders module for loading multiple files
//! // or loading from string)
Expand Down
Loading