Skip to content

Commit

Permalink
Fix a couple documentation typos.
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Oct 23, 2024
1 parent 1fe51b7 commit b40a7cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/opensearch/sql/utils/IPUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IPUtils {
* Supports both IPv4 and IPv6 addresses.
*
* @param addressExprValue IP address (e.g. "198.51.100.14" or "2001:0db8::ff00:42:8329").
* @param rangeExprValue IP address range in CIDR notation (e.g. "198.51.100.0/24" or "2001:0db8:/32")
* @param rangeExprValue IP address range in CIDR notation (e.g. "198.51.100.0/24" or "2001:0db8::/32")
* @return true if IP address is in range; else false
*/
public static ExprBooleanValue isAddressInRange(ExprValue addressExprValue, ExprValue rangeExprValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private static Stream<Arguments> getCidrArguments() {
Arguments.of("2001:0db9::8329", "2001:0db8::/32", false), // IPv6 greater
Arguments.of("2001:0db9::8329", "2001:0db8::/129", false), // IPv6 prefix too long

Arguments.of("INVALID", "10.24.34.0/24", false), // Invalid argument
Arguments.of("INVALID", "10.24.34.0/24", false), // Invalid address
Arguments.of("10.24.34.5", "INVALID", false), // Invalid range
Arguments.of("10.24.34.5", "10.24.34.0/INVALID", false) // Invalid prefix
);
Expand Down

0 comments on commit b40a7cd

Please sign in to comment.