Skip to content

Commit f8b71f6

Browse files
committed
formatting
1 parent d258a29 commit f8b71f6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

blade.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- [Blade & JavaScript Frameworks](#blade-and-javascript-frameworks)
1010
- [Control Structures](#control-structures)
1111
- [If Statements](#if-statements)
12-
- [Switch Statement](#switch-statement)
12+
- [Switch Statements](#switch-statements)
1313
- [Loops](#loops)
1414
- [The Loop Variable](#the-loop-variable)
1515
- [Comments](#comments)
@@ -210,24 +210,22 @@ In addition to the conditional directives already discussed, the `@isset` and `@
210210
// $records is "empty"...
211211
@endempty
212212

213-
<a name="switch-statement"></a>
214-
### Switch Statement
213+
<a name="switch-statements"></a>
214+
### Switch Statements
215215

216-
The Switch statement can be constructed using the `@switch`, `@case`, `@break`, `@default` and `@endswitch` directives.
216+
Switch statements can be constructed using the `@switch`, `@case`, `@break`, `@default` and `@endswitch` directives:
217217

218218
@switch($i)
219-
220219
@case(1)
221-
This is the first case
222-
@break
220+
First case...
221+
@break
223222

224223
@case(2)
225-
This is the second case
226-
@break
224+
Second case...
225+
@break
227226

228227
@default
229-
Default to the rescue
230-
228+
Default case...
231229
@endswitch
232230

233231
<a name="loops"></a>

0 commit comments

Comments
 (0)