Skip to content

Commit dbacf5b

Browse files
committed
docs: fix example description about constructor
1 parent 019ea50 commit dbacf5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use non_empty_string::NonEmptyString;
1414
let s = "A string with a length".to_owned();
1515
assert!(NonEmptyString::new(s).is_ok());
1616

17-
// But constructing it from a non-zero-length String results in an `Err`, where we get the `String` back that we passed in.
17+
// But constructing it from a zero-length String results in an `Err`, where we get the `String` back that we passed in.
1818
let empty = "".to_owned();
1919
let result = NonEmptyString::new(empty);
2020
assert!(result.is_err());

0 commit comments

Comments
 (0)