Skip to content

Commit 39298bd

Browse files
authored
Fix C++ NetworkTable example code (#1774)
1 parent afe95de commit 39298bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/docs/software/networktables/reading-array-values-published-by-networktables.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Writing a program to access the keys
5757

5858
.. code-tab:: cpp
5959

60-
std::shared_ptr<NetworkTable> table;
60+
std::shared_ptr<nt::NetworkTable> table;
6161

6262
void Robot::RobotInit() override {
63-
table = NetworkTable::GetTable("GRIP/myContoursReport");
63+
table = nt::NetworkTableInstance::GetDefault().GetTable("GRIP/myContoursReport");
6464
}
6565

6666
void Robot::TeleopPeriodic() override {

0 commit comments

Comments
 (0)