Skip to content

Commit d401891

Browse files
committed
copyedit
1 parent c79da8b commit d401891

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

go/ql/lib/semmle/go/Scopes.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,6 @@ class Method extends Function {
587587
predicate implementsIncludingInterfaceMethods(Method m) {
588588
this = m
589589
or
590-
// Take all methods
591-
// Get receiver type then underlying type ==> [method, recvutype]
592-
// Map through Type.implements ==> [method, candtype]
593-
// Get method name ==> [mname, candtype]
594-
// Get corresponding method
595590
exists(Type t, string mname |
596591
t = implementsIncludingInterfaceMethodsCand(m, mname) and
597592
this = t.getMethod(mname)

go/ql/lib/semmle/go/Types.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ int numberOfTypesWithMethodName(string name) { result = count(Type t | t.hasMeth
10751075
*
10761076
* This is used to restrict the set of interfaces to consider in the definition of `implements`,
10771077
* so it does not matter which method name is chosen (we use the most unusual name the interface
1078-
* require; this is the most discriminating and so shrinks the search space the most).
1078+
* requires; this is the most discriminating and so shrinks the search space the most).
10791079
*/
10801080
private string getExampleMethodName(InterfaceType i) {
10811081
result = min(string m | i.hasMethod(m, _) | m order by numberOfTypesWithMethodName(m))

0 commit comments

Comments
 (0)