diff --git a/source/docs/software/basic-programming/alliancecolor.rst b/source/docs/software/basic-programming/alliancecolor.rst index a5fed5ac77..050986cebd 100644 --- a/source/docs/software/basic-programming/alliancecolor.rst +++ b/source/docs/software/basic-programming/alliancecolor.rst @@ -9,12 +9,12 @@ Note that there are three cases: red, blue, and no color yet. It is important t .. tab-set-code:: ```java - Optional ally = DriverStation.getAlliance(); + Optional ally = DriverStationBackend.getAlliance(); if (ally.isPresent()) { - if (ally.get() == Alliance.Red) { + if (ally.get() == Alliance.RED) { } - if (ally.get() == Alliance.Blue) { + if (ally.get() == Alliance.BLUE) { } }