Skip to content

Commit eb9a58d

Browse files
authored
Fix constructor arguments for equality (#2366)
Match the arguments used for `c1`.
1 parent d2639a7 commit eb9a58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

working/extension_structs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void test() {
9898
// Call the default constructor, using the default value for w
9999
var c1 = Component(0, 0, 0);
100100
// Call the default constructor, explicitly passing w
101-
var c2 = Component(1, 1, 1, 1);
101+
var c2 = Component(0, 0, 0, 1);
102102
103103
assert(c1 == c2); // Equality is defined to be structural
104104
assert(c1.hashCode == c2.hashCode); // With correspondind hashCode

0 commit comments

Comments
 (0)