Skip to content

doc: add the missing semicolon to fix syntax error#1606

Open
kjasn wants to merge 1 commit intosunface:mainfrom
kjasn:main
Open

doc: add the missing semicolon to fix syntax error#1606
kjasn wants to merge 1 commit intosunface:mainfrom
kjasn:main

Conversation

@kjasn
Copy link
Copy Markdown

@kjasn kjasn commented Mar 27, 2026

模式匹配章节,模式适用场景,let-else 的例子中:

// if let
if let Some(x) = some_option_value {
    println!("{}", x);
}

// let-else
let Some(x) = some_option_value else { return; }  // Syntax Error: expected SEMICOLON
println!("{}", x);

语法错误

Copilot AI review requested due to automatic review settings March 27, 2026 08:06
Copy link
Copy Markdown

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

修复《模式匹配 / 模式适用场景》中 let-else 示例缺失分号导致的 Rust 语法错误,确保示例代码可直接编译运行。

Changes:

  • let-else 语句补充分号(;),修复示例语法错误。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants