Files
100-exercises-to-learn-rust/exercises/07_threads/14_sync/src/lib.rs
2024-05-12 22:47:45 +02:00

15 lines
306 B
Rust

// Not much to be exercised on `Sync`, just a thing to remember.
fn outro() -> &'static str {
"I have a good understanding of __!"
}
#[cfg(test)]
mod tests {
use crate::outro;
#[test]
fn test_outro() {
assert_eq!(outro(), "I have a good understanding of Send and Sync!");
}
}