diff options
author | Ethan P <32112321+eth-p@users.noreply.github.com> | 2020-10-31 23:14:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 23:14:00 -0700 |
commit | 61f947a580f385f66e96d60e2458e89f06940113 (patch) | |
tree | efd7ab1b4aa89816d93f11c499fe1bb5169bb22c /tests/snapshots/output/changes_grid_rule.snapshot.txt | |
parent | c4bbf2886240148979f65d88f1adf548c3e5be4d (diff) | |
parent | 1614f80366a1fcc344df157d04bb5284ef09ee4c (diff) |
Merge pull request #1276 from tommilligan/style-rule
style: add component 'rule' for horizontal file delimiter
Diffstat (limited to 'tests/snapshots/output/changes_grid_rule.snapshot.txt')
-rw-r--r-- | tests/snapshots/output/changes_grid_rule.snapshot.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/snapshots/output/changes_grid_rule.snapshot.txt b/tests/snapshots/output/changes_grid_rule.snapshot.txt new file mode 100644 index 00000000..04767b8b --- /dev/null +++ b/tests/snapshots/output/changes_grid_rule.snapshot.txt @@ -0,0 +1,24 @@ +──┬───────────────────────────────────────────────────────────────────────────── + │ struct Rectangle { + │ width: u32, + │ height: u32, + │ } + │ +_ │ fn main() { + │ let rect1 = Rectangle { width: 30, height: 50 }; + │ + │ println!( +~ │ "The perimeter of the rectangle is {} pixels.", +~ │ perimeter(&rect1) + │ ); ++ │ println!(r#"This line contains invalid utf8: "�����"#; + │ } + │ + │ fn area(rectangle: &Rectangle) -> u32 { + │ rectangle.width * rectangle.height + │ } ++ │ ++ │ fn perimeter(rectangle: &Rectangle) -> u32 { ++ │ (rectangle.width + rectangle.height) * 2 ++ │ } +──┴───────────────────────────────────────────────────────────────────────────── |