We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e2063c commit 538c982Copy full SHA for 538c982
docs/reference/src/components/cairo/modules/language_constructs/pages/path.adoc
@@ -42,10 +42,10 @@ Examples:
42
fn foo<A, B>(a: A, b: B) { ... }
43
44
fn main() {
45
- foo::<bool, bool>(false, 3_u2); // OK
46
- foo::<bool, _>(false, 3_u2); // OK, B is inferred to be u32
47
- foo::<bool>(false, 3_u2); // OK, B is inferred to be u32
48
- foo(false, 3_u2); // OK, A, B are inferred as bool and u32 respectively
+ foo::<bool, bool>(false, 3_u32); // OK
+ foo::<bool, _>(false, 3_u32); // OK, B is inferred to be u32
+ foo::<bool>(false, 3_u32); // OK, B is inferred to be u32
+ foo(false, 3_u32); // OK, A, B are inferred as bool and u32 respectively
49
}
50
----
51
0 commit comments