Skip to content

Commit c0ac786

Browse files
committed
...
1 parent dbc410e commit c0ac786

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository = "https://github.com/tomoikey/refined-type"
66
readme = "README.md"
77
categories = ["development-tools"]
88
license = "MIT"
9-
version = "0.3.1"
9+
version = "0.3.2"
1010
edition = "2021"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ type NonEmptyString = Refined<NonEmptyStringRule>;
1313

1414
fn main() {
1515
let hello_world = NonEmptyString::new("hello world".to_string());
16-
assert_eq!(five.deref(), "hello world");
16+
assert_eq!(hello_world.deref(), "hello world");
1717

1818
let empty_string = NonEmptyString::new("".to_string());
19-
assert!(eight.is_err());
19+
assert!(empty_string.is_err());
2020
}
2121
```
2222

0 commit comments

Comments
 (0)