1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-05 03:58:45 +02:00

Correct compilation error in unit-tests.md

This commit is contained in:
Seamus Connor 2023-01-01 13:57:19 -08:00 committed by GitHub
parent 51cbf29d92
commit 6cb3254cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,12 @@ fn test_empty() {
#[test]
fn test_single_word() {
assert_eq!(first_word("Hello"), Some("Hello"));
assert_eq!(first_word("Hello"), "Hello");
}
#[test]
fn test_multiple_words() {
assert_eq!(first_word("Hello World"), Some("Hello"));
assert_eq!(first_word("Hello World"), "Hello");
}
```