From 7028d89c9e8c59441d7b817c2f062ebc1797d066 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 17 Jul 2025 17:31:51 +0200 Subject: [PATCH] Fix doctest --- apis/rust/node/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apis/rust/node/src/lib.rs b/apis/rust/node/src/lib.rs index bdc9c35d..90f26621 100644 --- a/apis/rust/node/src/lib.rs +++ b/apis/rust/node/src/lib.rs @@ -19,8 +19,11 @@ //! For standard nodes, the recommended initialization function is [`init_from_env`][`DoraNode::init_from_env`]. //! This function will return two values, a [`DoraNode`] instance and an [`EventStream`]: //! -//! ``` +//! ```no_run +//! use dora_node_api::DoraNode; +//! //! let (mut node, mut events) = DoraNode::init_from_env()?; +//! # Ok::<(), eyre::Report>(()) //! ``` //! //! You can use the `node` instance to send outputs and retrieve information about the node and