Clean up some small mistakes (#2451)

This commit is contained in:
josh11b
2022-12-07 15:12:08 -08:00
committed by GitHub
parent 9165b084f4
commit ee998c99ff
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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));
}