Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 committed Mar 12, 2024
2 parents 892ed88 + 5e41601 commit 783b950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ extend Shape for Rectangle {
}

func main() {
// Create a new rectangle using a struct-literal.
let rect = Rectangle { width: 10, height: 5 };
// Create a new rectangle using the generated constructor.
let rect = Rectangle(width: 10, height: 5);

// Call the `area` method on the rectangle.
println(rect.area()); // 50
Expand Down

0 comments on commit 783b950

Please sign in to comment.