Skip to content

Commit 538c982

Browse files
authored
Fix numeric literal example in path documentation (#8975)
1 parent 3e2063c commit 538c982

File tree

1 file changed

+4
-4
lines changed
  • docs/reference/src/components/cairo/modules/language_constructs/pages

1 file changed

+4
-4
lines changed

docs/reference/src/components/cairo/modules/language_constructs/pages/path.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Examples:
4242
fn foo<A, B>(a: A, b: B) { ... }
4343
4444
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
45+
foo::<bool, bool>(false, 3_u32); // OK
46+
foo::<bool, _>(false, 3_u32); // OK, B is inferred to be u32
47+
foo::<bool>(false, 3_u32); // OK, B is inferred to be u32
48+
foo(false, 3_u32); // OK, A, B are inferred as bool and u32 respectively
4949
}
5050
----
5151

0 commit comments

Comments
 (0)