Skip to content

Commit

Permalink
Add docstring to .edge method
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierrog committed Apr 8, 2024
1 parent 7123bf9 commit 40059d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/mock/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ impl<'a> SessionBuilder<'a> {
}
}

///
/// Create a new directed edge between nodes `from` and `to`. Fails if
/// `from` is a terminal node, or if either `from` or `to` imply a player
/// count that is incompatible with existing nodes.
pub fn edge(mut self, from: &'a Node, to: &'a Node) -> Result<Self> {
if let Node::Terminal(_) = from {
Err(MockViolation {
Expand Down

0 comments on commit 40059d9

Please sign in to comment.