From 0a623bcb8990129070fb0347010801a064f68ea8 Mon Sep 17 00:00:00 2001 From: Daniel Valdez Date: Fri, 31 Mar 2023 23:30:40 -0600 Subject: [PATCH] Grammar fix in Metric.scala file --- ann/src/main/scala/com/twitter/ann/common/Metric.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ann/src/main/scala/com/twitter/ann/common/Metric.scala b/ann/src/main/scala/com/twitter/ann/common/Metric.scala index 1c2c95aa9..d1780026f 100644 --- a/ann/src/main/scala/com/twitter/ann/common/Metric.scala +++ b/ann/src/main/scala/com/twitter/ann/common/Metric.scala @@ -178,7 +178,7 @@ case object InnerProduct Success(InnerProductDistance(cosineDistance.distance.toFloat)) case distance => Failure( - new IllegalArgumentException(s"Expected a inner product distance but got $distance") + new IllegalArgumentException(s"Expected an inner product distance but got $distance") ) } } @@ -254,7 +254,7 @@ case object Edit extends Metric[EditDistance] with Injection[EditDistance, Servi Success(EditDistance(cosineDistance.distance.toFloat)) case distance => Failure( - new IllegalArgumentException(s"Expected a inner product distance but got $distance") + new IllegalArgumentException(s"Expected an inner product distance but got $distance") ) } }