Skip to content

Commit 5bf8d21

Browse files
asgerfCopilot
andauthored
Update comment to reflect correct boxing in Optional.some
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent bf77a42 commit 5bf8d21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • unified/extractor/src/languages/swift

‎unified/extractor/src/languages/swift/swift.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ fn translation_rules() -> Vec<Rule<SwiftContext>> {
842842
Some(val) => val,
843843
None => tree!((identifier #{name})),
844844
};
845-
// Expand [weak x] into a unary_expr, to represent the boxing in Optional.same
845+
// Expand [weak x] into a unary_expr, to represent the boxing in Optional.some
846846
match spec {
847847
Some(spec) => tree!((unary_expr operator: (prefix_operator #{spec}) operand: {value})),
848848
None => value,

0 commit comments

Comments
 (0)