Skip to content

Commit

Permalink
Fix docs to not trigger rustdoc link
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Oct 25, 2023
1 parent dd0a69c commit cbecaa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bayesian_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ impl BayesianNetwork {
/// Generate a Bayesian Network from a JSON string.
/// The JSON string needs to have (in JSON types):
/// - `network`: `String`
/// - `variables`: [String]
/// - `cpts`: { String: [[Number]] }
/// - `states`: { String: [String] }
/// - `parents`: { String: [String] }
/// - `variables`: String[]
/// - `cpts`: { String: Number[][] }
/// - `states`: { String: String[] }
/// - `parents`: { String: String[] }
pub fn from_json(str: &str) -> BayesianNetwork {
match serde_json::from_str(str) {
Ok(bn) => bn,
Expand Down

0 comments on commit cbecaa9

Please sign in to comment.