Advertisement
cwchen

[Rust] Writing a function in a Rust library project.

Aug 23rd, 2017
1,367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.09 KB | None | 0 0
  1. // mylib/src/lib.rc
  2.  
  3. pub fn hello(name: &str) -> String {
  4.     format!("Hello, {}", name)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement