Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1023b23

Browse files
committed
Python: Simplify doc
1 parent d6a33a1 commit 1023b23

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ newtype TContent =
364364
TListElementContent() or
365365
/** An element of a set. */
366366
TSetElementContent() or
367-
/** An element of a tuple at a specifik index. */
367+
/** An element of a tuple at a specific index. */
368368
TTupleElementContent(int index) { exists(any(TupleNode tn).getElement(index)) } or
369369
/** An element of a dictionary under a specific key. */
370370
TDictionaryElementContent(string key) {
371371
key = any(KeyValuePair kvp).getKey().(StrConst).getS()
372372
or
373373
key = any(Keyword kw).getArg()
374374
} or
375-
/** An element of a dictionary at any key. */
375+
/** An element of a dictionary under any key. */
376376
TDictionaryElementAnyContent() or
377377
/** An object attribute. */
378378
TAttributeContent(string attr) { attr = any(Attribute a).getName() }
@@ -387,17 +387,17 @@ class Content extends TContent {
387387
string toString() { result = "Content" }
388388
}
389389

390-
/** The content of an element of a list. */
390+
/** An element of a list. */
391391
class ListElementContent extends TListElementContent, Content {
392392
override string toString() { result = "List element" }
393393
}
394394

395-
/** The content of an element of a set. */
395+
/** An element of a set. */
396396
class SetElementContent extends TSetElementContent, Content {
397397
override string toString() { result = "Set element" }
398398
}
399399

400-
/** The content, at a specific index, of an element of a tuple. */
400+
/** An element of a tuple at a specific index. */
401401
class TupleElementContent extends TTupleElementContent, Content {
402402
int index;
403403

@@ -409,7 +409,7 @@ class TupleElementContent extends TTupleElementContent, Content {
409409
override string toString() { result = "Tuple element at index " + index.toString() }
410410
}
411411

412-
/** The content, under a specific key, of an element of a dictionary. */
412+
/** An element of a dictionary under a specific key. */
413413
class DictionaryElementContent extends TDictionaryElementContent, Content {
414414
string key;
415415

@@ -421,12 +421,12 @@ class DictionaryElementContent extends TDictionaryElementContent, Content {
421421
override string toString() { result = "Dictionary element at key " + key }
422422
}
423423

424-
/** The content, at any key, of an element of a dictionary. */
424+
/** An element of a dictionary under any key. */
425425
class DictionaryElementAnyContent extends TDictionaryElementAnyContent, Content {
426426
override string toString() { result = "Any dictionary element" }
427427
}
428428

429-
/** The content of an object attribute. */
429+
/** An object attribute. */
430430
class AttributeContent extends TAttributeContent, Content {
431431
private string attr;
432432

0 commit comments

Comments
 (0)