1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-11-01 07:32:01 +00:00

Add line with invalid UTF-8

This commit is contained in:
Ezinwa Okpoechi
2018-05-18 11:35:52 +02:00
committed by David Peter
parent c826c2a438
commit d0782ef954
18 changed files with 99 additions and 81 deletions

View File

@@ -13,13 +13,14 @@
10 ~ │ "The perimeter of the rectangle is {} pixels.",
11 ~ │ perimeter(&rect1)
12 │ );
13 │ }
14 │
15 │ fn area(rectangle: &Rectangle) -> u32 {
16 │ rectangle.width * rectangle.height
17 │ }
18 +
19 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
20 + │ (rectangle.width + rectangle.height) * 2
21 + │ }
13 + │ <bat: INVALID UTF-8>
14 │ }
15 │
16 │ fn area(rectangle: &Rectangle) -> u32 {
17 │ rectangle.width * rectangle.height
18 }
19 + │
20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
21 + │ (rectangle.width + rectangle.height) * 2
22 + │ }
───────┴────────────────────────────────────────────────────────────────────────