Skip to content

Commit b6efbff

Browse files
authored
Markdown syntax fix for dart-tips-6 (#613)
* Markdown fix for dart-tips-6 Fixes #612 * Use colon
1 parent 58a4de3 commit b6efbff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resources/dart-tips/dart-tips-6.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ String shout(String msg, {int exclamations}) {
165165
}
166166
{% endprettify %}
167167

168-
To briefly recap, there are two ways to define optional parameters.
168+
To briefly recap, there are two ways to define optional parameters:
169169

170-
* [ ] for optional positional parameters
171-
* { } for optional named parameters
170+
* `[` `]` for optional positional parameters
171+
* `{` `}` for optional named parameters
172172

173173
There's yet another benefit from the use of optional parameters. But first, the
174174
setup: Sometimes, there's an obvious or default value for a parameter. Only on

0 commit comments

Comments
 (0)