Advertisement
cwchen

[Rust] Calling a function from a nested module

Aug 23rd, 2017
1,374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.22 KB | None | 0 0
  1. // Call external library
  2. extern crate phrase;
  3.  
  4. fn main() {
  5.     assert_eq!("Hello, Michael", phrase::english::greeting::hello("Michael"));
  6.     assert_eq!("你好,麥可", phrase::chinese::greeting::hello("麥可"));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement