Browse Source

Fix doctest

pull/1056/head
Philipp Oppermann 6 months ago
parent
commit
7028d89c9e
Failed to extract signature
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      apis/rust/node/src/lib.rs

+ 4
- 1
apis/rust/node/src/lib.rs View File

@@ -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


Loading…
Cancel
Save