Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 4c82ad6

Browse files
max-schaeferintrigus-lgtm
authored andcommitted
Apply suggestions from code review
Co-authored-by: intrigus-lgtm <[email protected]>
1 parent bdcb1f2 commit 4c82ad6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ql/src/semmle/go/StringOps.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module StringOps {
6767
}
6868

6969
/**
70-
* An expression of form `strings.HasPrefix(A, B)`.
70+
* An expression of the form `strings.HasPrefix(A, B)`.
7171
*/
7272
private class StringsHasPrefix extends Range, DataFlow::CallNode {
7373
StringsHasPrefix() { getTarget().hasQualifiedName("strings", "HasPrefix") }
@@ -89,7 +89,7 @@ module StringOps {
8989
}
9090

9191
/**
92-
* An expression of form `strings.Index(A, B) == 0`.
92+
* An expression of the form `strings.Index(A, B) == 0`.
9393
*/
9494
private class HasPrefix_IndexOfEquals extends Range, DataFlow::EqualityTestNode {
9595
DataFlow::CallNode indexOf;
@@ -122,7 +122,7 @@ module StringOps {
122122
}
123123

124124
/**
125-
* A comparison of form `x[0] == 'k'` for some rune literal `k`.
125+
* A comparison of the form `x[0] == 'k'` for some rune literal `k`.
126126
*/
127127
private class HasPrefix_FirstCharacter extends Range, DataFlow::EqualityTestNode {
128128
DataFlow::Node base;
@@ -138,7 +138,7 @@ module StringOps {
138138
}
139139

140140
/**
141-
* A comparison of form `x[:len(y)] === y`.
141+
* A comparison of the form `x[:len(y)] == y`.
142142
*/
143143
private class HasPrefix_Substring extends Range, DataFlow::EqualityTestNode {
144144
DataFlow::SliceNode slice;

0 commit comments

Comments
 (0)