Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix example.
  • Loading branch information
bernaferrari committed Apr 18, 2023
commit 9f1fcd7b84b60221224b63a0b4e0a7c7b0625da6
4 changes: 2 additions & 2 deletions src/release/breaking-changes/describeEnum-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Code before migration:
```dart
enum MyEnum { paper, rock }

print(describeEnum(paper)); // output: paper
print(describeEnum(MyEnum.paper)); // output: paper
```

Code after migration:
Expand All @@ -44,7 +44,7 @@ Code after migration:
```dart
enum MyEnum { paper, rock }

print(paper.name); // output: paper
print(MyEnum.paper.name); // output: paper
```

## Timeline
Expand Down