Running examples as doc tests is not gonna work

This commit is contained in:
microproofs 2024-08-08 00:32:59 -04:00 committed by Kasey
parent 53c461294b
commit 6fd9b34b92
1 changed files with 2 additions and 2 deletions

View File

@ -535,7 +535,7 @@ impl Term<Name> {
/// ///
/// ## Example /// ## Example
/// ///
/// ``` ///
/// ///
/// use uplc::ast::Term /// use uplc::ast::Term
/// let value = Term::var("thing"); /// let value = Term::var("thing");
@ -544,7 +544,7 @@ impl Term<Name> {
/// val.do_something() /// val.do_something()
/// .do_another_thing() /// .do_another_thing()
/// }) /// })
/// ``` ///
pub fn as_var<F>(self, var_name: &str, callback: F) -> Term<Name> pub fn as_var<F>(self, var_name: &str, callback: F) -> Term<Name>
where where
F: FnOnce(Rc<Name>) -> Term<Name>, F: FnOnce(Rc<Name>) -> Term<Name>,