Skip to content

Commit 4192ee4

Browse files
authored
Misc small fixes (#2123)
1 parent dd4deb6 commit 4192ee4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/design/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ members of the type, while methods can only be called on instances.
831831
#### Class functions
832832

833833
A class function is like a
834-
[C++ static member function or method](<https://en.wikipedia.org/wiki/Static_(keyword)#Static_method>),
834+
[C++ static member function](https://en.cppreference.com/w/cpp/language/static#Static_member_functions),
835835
and is declared like a function at file scope. The declaration can include a
836836
definition of the function body, or that definition can be provided out of line
837837
after the class definition is finished. A common use is for constructor

docs/design/generics/details.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class Point4b {
459459
return {.x = a.x * v, .y = a.y * v};
460460
}
461461
}
462-
alias Add = Vector.Add; // Syntax TBD
462+
alias Add = Vector.Add;
463463
}
464464
465465
// OR:
@@ -1079,8 +1079,8 @@ other type-of-types, independent of order.
10791079
Note that we do _not_ consider two type-of-types using the same name to mean the
10801080
same thing to be a conflict. For example, combining a type-of-type with itself
10811081
gives itself, `MyTypeOfType & MyTypeOfType == MyTypeOfType`. Also, given two
1082-
[interface extensions](#interface-extension) of a common base interface, the sum
1083-
should not conflict on any names in the common base.
1082+
[interface extensions](#interface-extension) of a common base interface, the
1083+
combination should not conflict on any names in the common base.
10841084

10851085
**Rejected alternative:** Instead of using `&` as the combining operator, we
10861086
considered using `+`,

0 commit comments

Comments
 (0)