Improved docs (allman syntax)

This commit is contained in:
2026-07-03 22:21:33 +02:00
parent ddf3efdf6e
commit 581390933d
8 changed files with 57 additions and 38 deletions
+6 -4
View File
@@ -12,15 +12,17 @@ T id<T>(T x)
}
// Generic struct
struct Pair<A, B> {
struct Pair<A, B>
{
A first,
B second,
}
// Generic enum
enum Result<T, E> {
Ok(T),
Err(E),
enum Result<T, E>
{
Ok(T);
Err(E);
}
// Generic with trait bounds