Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Dec 15, 2023
1 parent 7a7e9ab commit fd75f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ impl Converter {
/// prefix_map.insert("DOID".to_string(), "http://purl.obolibrary.org/obo/DOID_".to_string());
/// prefix_map.insert("OBO".to_string(), "http://purl.obolibrary.org/obo/".to_string());
/// let converter = Converter::from_prefix_map(prefix_map).unwrap();
///
/// let curie = converter.compress("http://purl.obolibrary.org/obo/DOID_1234").unwrap();
/// assert_eq!(curie, "DOID:1234");
/// ```
pub fn from_prefix_map(prefix_map: HashMap<String, String>) -> Result<Self, CuriesError> {
let mut converter = Converter::default();
Expand Down

0 comments on commit fd75f94

Please sign in to comment.