From ee998c99fffef1f7845ae1e11a4b253c57bebd1b Mon Sep 17 00:00:00 2001 From: josh11b Date: Wed, 7 Dec 2022 15:12:08 -0800 Subject: [PATCH] Clean up some small mistakes (#2451) --- docs/design/generics/details.md | 4 ++-- proposals/p0818.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/design/generics/details.md b/docs/design/generics/details.md index 11eda52e4d42..404bcf6e21de 100644 --- a/docs/design/generics/details.md +++ b/docs/design/generics/details.md @@ -3761,7 +3761,7 @@ To define these `impl`s inline in a `class` definition, include a `forall` clause with a more-specific type between the `impl` and `as` keywords. ``` -class Array(T:! Type, template N:! Int) { +class Array(T:! Type, template N:! i64) { impl forall [P:! Printable] Array(P, N) as Printable { ... } } ``` @@ -5690,7 +5690,7 @@ class Optional(T:! Movable) { return {.storage = U.MakeNone()}; } fn Some(x: T) -> Self { - return {.storage = u.Make(x)}; + return {.storage = U.Make(x)}; } ... private var storage: U.Storage; diff --git a/proposals/p0818.md b/proposals/p0818.md index d1672b595e0f..c1643a844d7c 100644 --- a/proposals/p0818.md +++ b/proposals/p0818.md @@ -259,7 +259,7 @@ interface I { let SwapType:! I where .A == B and .B == A and .C == C and .D == D and .E == E; let CycleType:! I where .A == B and .B == C and .C == D - and .D == E and .E == A; + and .D == E and .E == A; fn LookUp(hm: HashMap(D, E)*) -> E; fn Foo(x: Bar(A, B)); }