From 2dfa487a5636b79b15afb5887b8859a0487242ed Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Mon, 4 Apr 2022 18:01:56 -0700 Subject: [PATCH] api: Fixes in docs for DatatypeConstructor. (#8561) --- src/api/cpp/cvc5.h | 16 +++-- .../io/github/cvc5/DatatypeConstructor.java | 65 ++++++++++--------- src/api/python/cvc5.pxi | 9 +-- 3 files changed, 49 insertions(+), 41 deletions(-) diff --git a/src/api/cpp/cvc5.h b/src/api/cpp/cvc5.h index a2faf5a10..4fb86e25d 100644 --- a/src/api/cpp/cvc5.h +++ b/src/api/cpp/cvc5.h @@ -2142,9 +2142,11 @@ class CVC5_EXPORT DatatypeConstructor /** * Get the constructor term of this datatype constructor whose return - * type is retSort. This method is intended to be used on constructors of - * parametric datatypes and can be seen as returning the constructor - * term that has been explicitly cast to the given sort. + * type is `retSort`. + * + * This method is intended to be used on constructors of parametric datatypes + * and can be seen as returning the constructor term that has been explicitly + * cast to the given sort. * * This method is required for constructors of parametric datatypes whose * return type cannot be determined by type inference. For example, given: @@ -2166,12 +2168,12 @@ class CVC5_EXPORT DatatypeConstructor * \endverbatim * * This method is equivalent of applying the above, where this - * DatatypeConstructor is the one corresponding to nil, and retSort is + * DatatypeConstructor is the one corresponding to `nil`, and `retSort` is * `(List Int)`. * - * @note the returned constructor term `t` is the constructor, while - * `Solver::mkTerm(APPLY_CONSTRUCTOR, {t})` is used to construct the - * above (nullary) application of nil. + * @note The returned constructor term `t` is used to construct the above + * (nullary) application of `nil` with + * `Solver::mkTerm(APPLY_CONSTRUCTOR, {t})`. * * @warning This method is experimental and may change in future versions. * diff --git a/src/api/java/io/github/cvc5/DatatypeConstructor.java b/src/api/java/io/github/cvc5/DatatypeConstructor.java index 5a07d2c5e..1b0c94fa9 100644 --- a/src/api/java/io/github/cvc5/DatatypeConstructor.java +++ b/src/api/java/io/github/cvc5/DatatypeConstructor.java @@ -38,7 +38,7 @@ public class DatatypeConstructor extends AbstractPointer implements Iterable