diff --git a/SeaORM/docs/02-install-and-config/02-connection.md b/SeaORM/docs/02-install-and-config/02-connection.md index d6ccf9479f..1913c93980 100644 --- a/SeaORM/docs/02-install-and-config/02-connection.md +++ b/SeaORM/docs/02-install-and-config/02-connection.md @@ -94,7 +94,7 @@ Checks if a connection to the database is still valid. async fn check(db: DatabaseConnection) { assert!(db.ping().await.is_ok()); db.clone().close().await; - assert!(matches!(db.ping().await, Err(DbErr::ConnectionAcquire))); + assert!(matches!(db.ping().await, Err(DbErr::ConnectionAcquire(_)))); } ```