diff --git a/src/lib.rs b/src/lib.rs
index 54879cd..3c2cfc8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -79,7 +79,7 @@ along with this program. If not, see .
//! To start the server, you simply need to use the generated server struct and
//! pass it your handler.
//!
-//! ```rust
+//! ```no_run
//! # use eagle::Protocol;
//! # #[derive(Protocol)]
//! # pub enum Example {
@@ -112,7 +112,7 @@ along with this program. If not, see .
//! On the client side, you can simply use the generated client struct to connect
//! to the server and begin sending queries.
//!
-//! ```rust
+//! ```no_run
//! # use eagle::Protocol;
//! # #[derive(Protocol)]
//! # pub enum Example {