```rs // string_helper.ai pub fn pluralize(word: str) -> str { // Simple pluralization logic if word.ends_with("s") { return word + "es"; } return word + "s"; } print(pluralize("apple")); // Undefined variable 'print'. ``` ```rs // hello.ai // Import your module use string_helpers; let word = "apple"; let plural = string_helpers.pluralize(word); print(plural); // "apples" ``` We run `cargo run hello.ai` get "Undefined variable 'print'` error.
Activity