Skip to content

Commit e335737

Browse files
committed
Minor fixes to docs
1 parent adc946e commit e335737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ module SourceSinkInterpretationInput implements
276276
*
277277
* Note that naively checking `sse.asEntity()`'s qualified name is not correct, because
278278
* `Method`s and `Field`s may have multiple qualified names due to embedding. We must instead
279-
* check that the specific name given be `sse.hasTypeInfo` refers to either `qual`'s type
279+
* check that the specific name given by `sse.hasTypeInfo` refers to either `qual`'s type
280280
* or to a type it embeds.
281281
*/
282282
private predicate elementAppliesToQualifier(SourceOrSinkElement sse, DataFlow::Node qual) {
@@ -305,7 +305,7 @@ module SourceSinkInterpretationInput implements
305305
syntacticQualBaseType.getUnderlyingType().(InterfaceType).getAnEmbeddedInterface()
306306
or
307307
// `syntacticQualBaseType`'s underlying type might be a struct type and `sse`
308-
// might refer to an embedded method or field.
308+
// might be a promoted method or field in it.
309309
exists(StructType st, Field field1, Field field2, int depth1, int depth2, Type t2 |
310310
st = syntacticQualBaseType.getUnderlyingType() and
311311
field1 = st.getFieldAtDepth(_, depth1) and

0 commit comments

Comments
 (0)