Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hiql committed Jul 19, 2024
1 parent cdac8b2 commit 17baa8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ is-ip = "0.1.0"
## Usage

```rust
use is_ip::{is_ip, is_ipv4, is_ipv6}
use is_ip::{is_ip, is_ipv4, is_ipv6};

is_ip("1:2:3:4:5:6:7:8");
//=> true
Expand All @@ -38,7 +38,7 @@ Check if `string` is IPv4.

Check if `string` is IPv6.

### ip_version(string: &str) -> Option<u8>
### ip_version(string: &str) -> Option&lt;u8&gt;

Returns `Some(6)` if `string` is IPv6, `Some(4)` if `string` is IPv4, or `None` if `string` is neither.

Expand Down

0 comments on commit 17baa8b

Please sign in to comment.