Skip to content

Commit

Permalink
Remove getInstance calls from docs (fixes #252)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 28, 2024
1 parent 90b2d72 commit 67a9c22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docsSite/docs/tab-reference/mechanism.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion docsSite/docs/tab-reference/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
```

</TabItem>
Expand Down

0 comments on commit 67a9c22

Please sign in to comment.