Skip to content

Commit

Permalink
fix: doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel committed Nov 29, 2024
1 parent 38c1045 commit 4f7b1f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/learner/src/resource/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
//! # Examples
//!
//! ```rust,no_run
//! use std::collections::BTreeMap;
//!
//! use learner::{
//! resource::{Paper, Resource, ResourceConfig},
//! Learner,
Expand All @@ -29,7 +31,7 @@
//! println!("Paper type: {}", paper.resource_type());
//!
//! // Or create a custom resource type at runtime
//! let mut fields = serde_json::Map::new();
//! let mut fields = BTreeMap::new();
//! fields.insert("title".into(), json!("My Thesis"));
//! fields.insert("university".into(), json!("Tech University"));
//!
Expand Down

0 comments on commit 4f7b1f1

Please sign in to comment.