From cbecaa92d095b1ffa68cdff28f83e655d1922c99 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 25 Oct 2023 14:15:20 -0700 Subject: [PATCH] Fix docs to not trigger rustdoc link --- src/bayesian_network.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bayesian_network.rs b/src/bayesian_network.rs index 98635d5..e86a6e3 100644 --- a/src/bayesian_network.rs +++ b/src/bayesian_network.rs @@ -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,