Skip to content

Commit fc6f5cc

Browse files
committed
readme: re-word usage to remove version number
We cheat a little bit by leveraging 'cargo add'. Closes #889
1 parent 67824c7 commit fc6f5cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ can be found on the
2323

2424
### Usage
2525

26-
Add this to your `Cargo.toml`:
27-
28-
```toml
29-
[dependencies]
30-
regex = "1.5"
31-
```
26+
To bring this crate into your repository, either add `regex` to your
27+
`Cargo.toml`, or run `cargo add regex`.
3228

3329
Here's a simple example that matches a date in YYYY-MM-DD format and prints the
3430
year, month and day:

0 commit comments

Comments
 (0)