We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f6d71f commit 1071dd9Copy full SHA for 1071dd9
guide/items.md
@@ -28,6 +28,22 @@ The proper ordering and spacing is:
28
29
Avoid comments within the signature itself.
30
31
+If the function signature does not fit on one line, then break after the opening
32
+parenthesis and before the closing parenthesis and put each argument on its own
33
+block-indented line. For example,
34
+
35
+```rust
36
+fn foo(
37
+ arg1: i32,
38
+ arg2: i32,
39
+) -> i32 {
40
+ ...
41
+}
42
+```
43
44
+Note the trailing comma on the last argument.
45
46
47
### Tuples and tuple structs
48
49
Write the type list as you would a parameter list to a function.
0 commit comments