Skip to content

Commit

Permalink
Add doc comment for add_presort
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Fischman committed Oct 15, 2024
1 parent e3158ac commit 9a2a085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typechecking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl TypeInfo {
self.add_arcsort(Arc::new(sort), span)
}

/// Adds a sort constructor to the typechecker's known set of types.
pub fn add_presort<S: Presort>(&mut self, span: Span) -> Result<(), TypeError> {
let name = S::presort_name();
match self.presorts.entry(name) {
Expand Down

0 comments on commit 9a2a085

Please sign in to comment.