Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unnecessary parentheses in draft mode API #75153

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

gaojude
Copy link
Contributor

@gaojude gaojude commented Jan 21, 2025

What?

Updates the draft mode documentation to fix incorrect method calls in the code examples.

Why?

The code examples were showing incorrect syntax for enabling and disabling draft mode, using draft() instead of accessing the methods directly on the draft object.

How?

Removes the unnecessary parentheses when calling enable() and disable() methods on the draft mode object in the documentation examples.

Fixes https://github.com/vercel/feedback/issues/82345

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. labels Jan 21, 2025
@gaojude gaojude changed the title draft doc typo fix: remove unnecessary parentheses in draft mode API Jan 21, 2025
Copy link
Contributor Author

gaojude commented Jan 21, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gaojude gaojude marked this pull request as ready for review January 21, 2025 17:21
@gaojude gaojude requested a review from delbaoliveira January 21, 2025 17:22
@leerob leerob merged commit 17fc0c7 into canary Jan 21, 2025
61 checks passed
@leerob leerob deleted the jude/draft-typo-on-doc branch January 21, 2025 17:32
@github-actions github-actions bot added the locked label Feb 5, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants