Skip to content

Commit

Permalink
Merge branch 'main' into docs/owasp_mobile_security_top_ten
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaPS committed Jan 27, 2025
2 parents b5adaf8 + 4842121 commit c5a22f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/code_style/code_style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Among other things, the release of Dart 3.0 introduced [record types](https://da
<Tabs>
<TabItem label="Bad ❗️">
```dart
Future<(String, String)> getUserNameAndEmail() async => return _someApiFetchMethod();
Future<(String, String)> getUserNameAndEmail() async => _someApiFetchMethod();
final userData = await getUserNameAndEmail();
Expand All @@ -33,7 +33,7 @@ The above example will compile, but it is not immediately obvious what value `us
<Tabs>
<TabItem label="Good ✅">
```dart
Future<(String, String)> getUserNameAndEmail() async => return _someApiFetchMethod();
Future<(String, String)> getUserNameAndEmail() async => _someApiFetchMethod();
final (username, email) = await getUserNameAndEmail();
Expand Down

0 comments on commit c5a22f2

Please sign in to comment.