From 67a9c22d12f86d3cdebedba36ff7118168d59ce5 Mon Sep 17 00:00:00 2001 From: Jonah <47046556+jwbonner@users.noreply.github.com> Date: Sun, 27 Oct 2024 23:53:02 -0400 Subject: [PATCH] Remove `getInstance` calls from docs (fixes #252) --- docsSite/docs/tab-reference/mechanism.md | 2 +- docsSite/docs/tab-reference/metadata.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docsSite/docs/tab-reference/mechanism.md b/docsSite/docs/tab-reference/mechanism.md index 6d3ecee2..d0e2463f 100644 --- a/docsSite/docs/tab-reference/mechanism.md +++ b/docsSite/docs/tab-reference/mechanism.md @@ -47,7 +47,7 @@ To publish mechanism data using AdvantageKit, record a `Mechanism2d` as an outpu ```java Mechanism2d mechanism = new Mechanism2d(3, 3); -Logger.getInstance().recordOutput("MyMechanism", mechanism); +Logger.recordOutput("MyMechanism", mechanism); ``` diff --git a/docsSite/docs/tab-reference/metadata.md b/docsSite/docs/tab-reference/metadata.md index 4fb2d24a..ec800316 100644 --- a/docsSite/docs/tab-reference/metadata.md +++ b/docsSite/docs/tab-reference/metadata.md @@ -35,7 +35,7 @@ entry.append("MyValue"); In AdvantageKit, call the method below before starting the logger. Metadata is stored separately when running in real and replay for easy comparison. ```java -Logger.getInstance().recordMetadata("MyKey", "MyValue"); +Logger.recordMetadata("MyKey", "MyValue"); ```