Skip to content

Commit

Permalink
fix typo (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojackli authored Aug 29, 2024
1 parent d45db61 commit d495234
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case class ConstraintSuggestionWithValue[T](

object ConstraintSuggestions {

private[this] val CONSTRANT_SUGGESTIONS_FIELD = "constraint_suggestions"
private[this] val CONSTRAINT_SUGGESTIONS_FIELD = "constraint_suggestions"

private[suggestions] def toJson(constraintSuggestions: Seq[ConstraintSuggestion]): String = {

Expand All @@ -68,7 +68,7 @@ object ConstraintSuggestions {
constraintsJson.add(constraintJson)
}

json.add(CONSTRANT_SUGGESTIONS_FIELD, constraintsJson)
json.add(CONSTRAINT_SUGGESTIONS_FIELD, constraintsJson)

val gson = new GsonBuilder()
.setPrettyPrinting()
Expand Down Expand Up @@ -109,7 +109,7 @@ object ConstraintSuggestions {
constraintEvaluations.add(constraintEvaluation)
}

json.add(CONSTRANT_SUGGESTIONS_FIELD, constraintEvaluations)
json.add(CONSTRAINT_SUGGESTIONS_FIELD, constraintEvaluations)

val gson = new GsonBuilder()
.setPrettyPrinting()
Expand Down

0 comments on commit d495234

Please sign in to comment.