Skip to content

Commit

Permalink
[wpimath] Add Pair.toString() (wpilibsuite#6463)
Browse files Browse the repository at this point in the history
  • Loading branch information
WispySparks authored and DeltaDizzy committed Mar 26, 2024
1 parent ba3ec52 commit a946c17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wpimath/src/main/java/edu/wpi/first/math/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ public B getSecond() {
public static <A, B> Pair<A, B> of(A a, B b) {
return new Pair<>(a, b);
}

@Override
public String toString() {
return String.format("Pair(%s, %s)", m_first, m_second);
}
}

0 comments on commit a946c17

Please sign in to comment.