Skip to content

Commit ca23e93

Browse files
committed
Merge pull request #48 from pnkfelix/patch-1
fix formatting bug
2 parents 929d4b6 + 165d318 commit ca23e93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_posts/2015-04-17-Enums-match-mutation-and-moves.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,10 @@ fn test_num_to_ordinal() {
419419

420420
The Rust compiler accepts the above program. This is notable because
421421
its static analyses ensure both:
422+
422423
* `suffix` is always initialized before we run the `format!` at the end
423424
of the function, and
425+
424426
* `suffix` is assigned *at most once* during the function's execution (because if
425427
we could assign `suffix` multiple times, the compiler would force us
426428
to mark `suffix` as mutable).

0 commit comments

Comments
 (0)