From: Aina Niemetz Date: Tue, 5 Apr 2022 01:01:56 +0000 (-0700) Subject: api: Fixes in docs for DatatypeConstructor. (#8561) X-Git-Tag: cvc5-1.0.0~15 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dfa487a5636b79b15afb5887b8859a0487242ed;p=cvc5.git api: Fixes in docs for DatatypeConstructor. (#8561) --- 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