Fixes README example

pull/190/head
Tpt 3 years ago
parent 8c03e418a7
commit 2133a05b95
  1. 2
      lib/README.md

@ -37,7 +37,7 @@ let store = Store::new().unwrap();
// insertion
let ex = NamedNode::new("http://example.com").unwrap();
let quad = Quad::new(ex.clone(), ex.clone(), ex.clone(), GraphName::DefaultGraph);
store.insert(&quad)?;
store.insert(&quad).unwrap();
// quad filter
let results = store.quads_for_pattern(Some(ex.as_ref().into()), None, None, None).collect::<Result<Vec<Quad>,_>>().unwrap();

Loading…
Cancel
Save