Skip to content

Commit 5e2db3a

Browse files
authored
Merge pull request #8 from extrawurst/patch-1
Update README.md
2 parents 285e2a6 + 9e2975b commit 5e2db3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ Add `posthog-rs` to your `Cargo.toml`.
1010

1111
```toml
1212
[dependencies]
13-
posthog_rs = "0.2.0"
13+
posthog-rs = "0.2.0"
1414
```
1515

1616
```rust
17-
let client = crate::client(env!("POSTHOG_API_KEY"));
17+
let client = posthog_rs::client(env!("POSTHOG_API_KEY"));
1818

19-
let mut event = Event::new("test", "1234");
19+
let mut event = posthog_rs::Event::new("test", "1234");
2020
event.insert_prop("key1", "value1").unwrap();
2121
event.insert_prop("key2", vec!["a", "b"]).unwrap();
2222

2323
client.capture(event).unwrap();
24-
2524
```
2625

0 commit comments

Comments
 (0)