Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

[fix] enums.mdx example code error#944

Merged
WGB5445 merged 1 commit intomainfrom
WGB5445-patch-1
May 14, 2025
Merged

[fix] enums.mdx example code error#944
WGB5445 merged 1 commit intomainfrom
WGB5445-patch-1

Conversation

@WGB5445
Copy link
Contributor

@WGB5445 WGB5445 commented May 14, 2025

Description

Checklist

  • If any existing pages were renamed or removed:
    • Were redirects added to next.config.mjs?
    • Did you update any relative links that pointed to the renamed / removed pages?
  • Do all Lints pass?
    • Have you ran pnpm fmt?
    • Have you ran pnpm lint?

Copilot AI review requested due to automatic review settings May 14, 2025 01:53
@WGB5445 WGB5445 requested a review from a team as a code owner May 14, 2025 01:53
@vercel
Copy link

vercel bot commented May 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
developer-docs-nextra ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 1:59am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a syntax error in the enums.mdx example code for Move by removing an extraneous parenthesis in the match expression.

  • Removed the extra ")" in the match statement of the code sample.

```move
let r : Result<Result<u64>> = Ok(Err(42));
let v = match (r)) {
let v = match (r) {
Copy link

Copilot AI May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra ')' has been removed from the match expression to fix the syntax error in the code sample. Please ensure that this correction aligns with the intended example for Move language usage.

Suggested change
let v = match (r) {
let v = match r {

Copilot uses AI. Check for mistakes.
@WGB5445 WGB5445 merged commit 21dc2a3 into main May 14, 2025
5 checks passed
@WGB5445 WGB5445 deleted the WGB5445-patch-1 branch May 14, 2025 02:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants