@@ -52,7 +52,7 @@ library class PossibleAdvancedFormatString extends StrConst {
5252 predicate isExplicitlyNumbered ( ) { exists ( this .fieldId ( _, _) .toInt ( ) ) }
5353}
5454
55- /** Holds if there is a sequence of `{` braces in `fmt ` of length `len` beginning at index `index`. */
55+ /** Holds if the formatting string `fmt` contains a sequence of braces `{ ` of length `len`, beginning at index `index`. */
5656predicate brace_sequence ( PossibleAdvancedFormatString fmt , int index , int len ) {
5757 exists ( string text | text = fmt .getText ( ) |
5858 text .charAt ( index ) = "{" and not text .charAt ( index - 1 ) = "{" and len = 1
@@ -63,12 +63,12 @@ predicate brace_sequence(PossibleAdvancedFormatString fmt, int index, int len) {
6363 )
6464}
6565
66- /** Holds if index `index` in the format string `fmt` contains an escaped `{`. */
66+ /** Holds if index `index` in the format string `fmt` contains an escaped brace `{`. */
6767predicate escaped_brace ( PossibleAdvancedFormatString fmt , int index ) {
6868 exists ( int len | brace_sequence ( fmt , index , len ) | len % 2 = 0 )
6969}
7070
71- /** Holds if index `index` in the format string `fmt` contains a left curly brace that acts as an escape. */
71+ /** Holds if index `index` in the format string `fmt` contains a left brace `{` that acts as an escape character . */
7272predicate escaping_brace ( PossibleAdvancedFormatString fmt , int index ) {
7373 escaped_brace ( fmt , index + 1 )
7474}
@@ -114,7 +114,7 @@ class AdvancedFormatString extends PossibleAdvancedFormatString {
114114 AdvancedFormatString ( ) { advanced_format_call ( _, this , _) }
115115}
116116
117- /** A string formatting operation using the `format` method. */
117+ /** A string formatting operation that uses the `format` method. */
118118class AdvancedFormattingCall extends Call {
119119 AdvancedFormattingCall ( ) { advanced_format_call ( this , _, _) }
120120
0 commit comments