Skip to content

Commit 7a704d8

Browse files
committed
chore: re-enable doctest
1 parent 89d1a62 commit 7a704d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/states.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,15 @@ pub(crate) mod sealed {
186186
/// Invoking with an ext and DB type will use the provided ext type and the
187187
/// static lifetime:
188188
///
189-
/// ```no_compile
189+
/// ```
190+
/// # mod t {
190191
/// # use trevm::trevm_aliases;
191192
/// # use revm::db::InMemoryDB;
192-
///
193+
/// # pub struct SomeExtType;
193194
/// // produces types that look like this:
194195
/// // type EvmNeedsCfg = trevm::EvmNeedsCfg<'static, SomeExtType, InMemoryDB>;
195196
/// trevm_aliases!(SomeExtType, InMemoryDB);
197+
/// # }
196198
/// ```
197199
///
198200
/// To add a lifetime to the ext type, add the word lifetime:

0 commit comments

Comments
 (0)