Skip to content

Commit c660f48

Browse files
author
Dylan Storey
committed
fix: add type annotation to doctest to fix type inference error
1 parent 429784b commit c660f48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bindings/rust/src/graph/bulk.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ impl Graph {
189189
/// use graphqlite::Graph;
190190
///
191191
/// let g = Graph::open_in_memory()?;
192+
/// let empty: Vec<(&str, &str)> = vec![];
192193
/// let id_map = g.insert_nodes_bulk([
193-
/// ("a", vec![], "Node"),
194-
/// ("b", vec![], "Node"),
194+
/// ("a", empty.clone(), "Node"),
195+
/// ("b", empty.clone(), "Node"),
195196
/// ])?;
196197
///
197198
/// g.insert_edges_bulk(

0 commit comments

Comments
 (0)