Skip to content

Commit

Permalink
Fix readme failing doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Nov 20, 2023
1 parent c81e932 commit 0691bb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
let client = Mpesa::new(
env!("CLIENT_KEY"),
env!("CLIENT_SECRET"),
Environment::from_str("production")?, // or Environment::try_from("production")?
Environment::from_str("sandbox")?, // or
// Environment::try_from("sandbox")?,
);

assert!(client.is_connected().await);
Expand Down

0 comments on commit 0691bb4

Please sign in to comment.