Skip to content

Commit

Permalink
remove "either" from 3 exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 25, 2025
1 parent dd5295f commit 9e7cb88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/stephengold/joltjni/Float3.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -100,7 +100,7 @@ public float get(int index) {
return z;
default:
throw new IllegalArgumentException(
"index must be either 0, 1 or 2");
"index must be 0, 1 or 2");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/stephengold/joltjni/RVec3.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public double get(int index) {
return zz;
default:
throw new IllegalArgumentException(
"index must be either 0, 1 or 2");
"index must be 0, 1 or 2");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/stephengold/joltjni/Vec3.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public float get(int index) {
return z;
default:
throw new IllegalArgumentException(
"index must be either 0, 1 or 2");
"index must be 0, 1 or 2");
}
}

Expand Down

0 comments on commit 9e7cb88

Please sign in to comment.