Skip to content

Commit

Permalink
Fix a couple fn declarations in generics details (#4214)
Browse files Browse the repository at this point in the history
I think this is just a typo.
  • Loading branch information
jonmeow authored Aug 13, 2024
1 parent bfe0fc7 commit 56332fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/design/generics/details.md
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ interface Iterable {
require Self impls Equatable;
}
def DoAdvanceAndEquals[T:! Iterable](x: T) {
fn DoAdvanceAndEquals[T:! Iterable](x: T) {
// `x` has type `T` that implements `Iterable`, and so has `Advance`.
x.Advance();
// `Iterable` requires an implementation of `Equatable`,
Expand All @@ -1234,7 +1234,7 @@ interface Hashable {
alias Equals = Equatable.Equals;
}
def DoHashAndEquals[T:! Hashable](x: T) {
fn DoHashAndEquals[T:! Hashable](x: T) {
// Now both `Hash` and `Equals` are available directly:
x.Hash();
x.Equals(x);
Expand Down

0 comments on commit 56332fc

Please sign in to comment.