-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spacing issue with git feature disabled
- Loading branch information
1 parent
1908a60
commit 2f0faa2
Showing
5 changed files
with
120 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
─────┬────────────────────────────────────────────────────────────────────────── | ||
│ File: sample.rs | ||
─────┼────────────────────────────────────────────────────────────────────────── | ||
1 │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 │ "The perimeter of the rectangle is {} pixels.", | ||
12 │ perimeter(&rect1) | ||
13 │ ); | ||
14 │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 │ | ||
21 │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 │ (rectangle.width + rectangle.height) * 2 | ||
23 │ } | ||
─────┴────────────────────────────────────────────────────────────────────────── | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
│ File: sample.rs | ||
───────┼──────────────────────────────────────────────────────────────────────── | ||
1 │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 │ "The perimeter of the rectangle is {} pixels.", | ||
12 │ perimeter(&rect1) | ||
13 │ ); | ||
14 │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 │ | ||
21 │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 │ (rectangle.width + rectangle.height) * 2 | ||
23 │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
─────┬────────────────────────────────────────────────────────────────────────── | ||
1 │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 │ "The perimeter of the rectangle is {} pixels.", | ||
12 │ perimeter(&rect1) | ||
13 │ ); | ||
14 │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 │ | ||
21 │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 │ (rectangle.width + rectangle.height) * 2 | ||
23 │ } | ||
─────┴────────────────────────────────────────────────────────────────────────── | ||
───────┬──────────────────────────────────────────────────────────────────────── | ||
1 │ /// A rectangle. First line is changed to prevent a regression of #1869 | ||
2 │ struct Rectangle { | ||
3 │ width: u32, | ||
4 │ height: u32, | ||
5 │ } | ||
6 │ | ||
7 │ fn main() { | ||
8 │ let rect1 = Rectangle { width: 30, height: 50 }; | ||
9 │ | ||
10 │ println!( | ||
11 │ "The perimeter of the rectangle is {} pixels.", | ||
12 │ perimeter(&rect1) | ||
13 │ ); | ||
14 │ println!(r#"This line contains invalid utf8: "�����"#; | ||
15 │ } | ||
16 │ | ||
17 │ fn area(rectangle: &Rectangle) -> u32 { | ||
18 │ rectangle.width * rectangle.height | ||
19 │ } | ||
20 │ | ||
21 │ fn perimeter(rectangle: &Rectangle) -> u32 { | ||
22 │ (rectangle.width + rectangle.height) * 2 | ||
23 │ } | ||
───────┴──────────────────────────────────────────────────────────────────────── |