7 let rect1 = Rectangle { width: 30, height: 50 };
10 "The perimeter of the rectangle is {} pixels.",
15fn area(rectangle: &Rectangle) -> u32 {
16 rectangle.width * rectangle.height
19fn perimeter(rectangle: &Rectangle) -> u32 {
20 (rectangle.width + rectangle.height) * 2
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list