Skip to content

Commit

Permalink
Add redirect for tooling to the main function docs (#5937)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough authored Jun 26, 2024
1 parent 5c133af commit 059dabd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@
{ "source": "/stable{,/**}", "destination": "https://api.dart.dev/stable", "type": 301 },
{ "source": "/support/faq?(.html)", "destination": "/resources/faq", "type": 301 },
{ "source": "/support{,/**}", "destination": "/community", "type": 301 },

{ "source": "/to/main-function", "destination": "/language/functions#main", "type": 301 },

{ "source": "/tools/**/download{,.html,/**}", "destination": "/get-dart", "type": 301 },
{ "source": "/tools/**/private-files?(.html)", "destination": "/guides/libraries/private-files", "type": 301 },
{ "source": "/tools/analyzer", "destination": "/tools/dart-analyze", "type": 301 },
Expand Down
3 changes: 2 additions & 1 deletion src/content/language/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ String say(String from, String msg, [String device = 'carrier pigeon']) {
assert(say('Bob', 'Howdy') == 'Bob says Howdy with a carrier pigeon');
```

<a id="the-main-function" aria-hidden="true"></a>

## The main() function
## The main() function {:#main}

Every app must have a top-level `main()` function, which serves as the
entrypoint to the app. The `main()` function returns `void` and has an
Expand Down

0 comments on commit 059dabd

Please sign in to comment.