Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an error in the example code in variables.mdx by correcting the block structure and adjusting inline comments.
- Fixes the code block structure by adding an extra closing brace.
- Updates the inline comment on the expression that discards a value.
| { | ||
| let x = 0; | ||
| x + 1; // value is discarded | ||
| x + 1; // |
There was a problem hiding this comment.
[nitpick] Consider updating or removing the now-empty inline comment to maintain clarity on why the expression's result is discarded.
| b"hello"; // value is discarded | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Verify that the added closing brace correctly resolves the intended block structure; any mismatch could lead to unintended behavior in the code sample.
| { | ||
| let x = 0; | ||
| x + 1; // value is discarded | ||
| x + 1; // |
There was a problem hiding this comment.
This value is discarded.
Because x + 1 isn't set to anything
There was a problem hiding this comment.
The truth is, it was an accident.
Description
Checklist
pnpm fmt?pnpm lint?