diff --git a/README.md b/README.md index a5feac0..1abd050 100644 --- a/README.md +++ b/README.md @@ -10,17 +10,16 @@ Add `posthog-rs` to your `Cargo.toml`. ```toml [dependencies] -posthog_rs = "0.2.0" +posthog-rs = "0.2.0" ``` ```rust -let client = crate::client(env!("POSTHOG_API_KEY")); +let client = posthog_rs::client(env!("POSTHOG_API_KEY")); -let mut event = Event::new("test", "1234"); +let mut event = posthog_rs::Event::new("test", "1234"); event.insert_prop("key1", "value1").unwrap(); event.insert_prop("key2", vec!["a", "b"]).unwrap(); client.capture(event).unwrap(); - ```