Skip to content

Commit 447776f

Browse files
l46kokcopybara-github
authored andcommitted
Fix extensions README.md formatting
PiperOrigin-RevId: 631855511
1 parent 62b0d22 commit 447776f

File tree

1 file changed

+20
-20
lines changed
  • extensions/src/main/java/dev/cel/extensions

1 file changed

+20
-20
lines changed

extensions/src/main/java/dev/cel/extensions/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ zero-based.
140140
Returns the character at the given position. If the position is negative, or greater than
141141
the length of the string, the function will produce an error.
142142

143-
<string>.charAt(<int>) -> <string>
143+
<string>.charAt(<int>) -> <string>
144144

145145
Examples:
146146

147-
'hello'.charAt(4) // return 'o'
148-
'hello'.charAt(5) // return ''
149-
'hello'.charAt(-1) // error
147+
'hello'.charAt(4) // return 'o'
148+
'hello'.charAt(5) // return ''
149+
'hello'.charAt(-1) // error
150150

151151
### IndexOf
152152

@@ -156,33 +156,33 @@ not found the function returns -1.
156156
The function also accepts an optional offset from which to begin the substring search. If the
157157
substring is the empty string, the index where the search starts is returned (zero or custom).
158158

159-
<string>.indexOf(<string>) -> <int>
160-
<string>.indexOf(<string>, <int>) -> <int>
159+
<string>.indexOf(<string>) -> <int>
160+
<string>.indexOf(<string>, <int>) -> <int>
161161

162162
Examples:
163163

164-
'hello mellow'.indexOf('') // returns 0
165-
'hello mellow'.indexOf('ello') // returns 1
166-
'hello mellow'.indexOf('jello') // returns -1
167-
'hello mellow'.indexOf('', 2) // returns 2
168-
'hello mellow'.indexOf('ello', 2) // returns 7
169-
'hello mellow'.indexOf('ello', 20) // error
164+
'hello mellow'.indexOf('') // returns 0
165+
'hello mellow'.indexOf('ello') // returns 1
166+
'hello mellow'.indexOf('jello') // returns -1
167+
'hello mellow'.indexOf('', 2) // returns 2
168+
'hello mellow'.indexOf('ello', 2) // returns 7
169+
'hello mellow'.indexOf('ello', 20) // error
170170

171171
### Join
172172

173173
Returns a new string where the elements of string list are concatenated.
174174

175175
The function also accepts an optional separator which is placed between elements in the resulting string.
176176

177-
<list<string>>.join() -> <string>
178-
<list<string>>.join(<string>) -> <string>
177+
<list<string>>.join() -> <string>
178+
<list<string>>.join(<string>) -> <string>
179179

180180
Examples:
181181

182-
['hello', 'mellow'].join() // returns 'hellomellow'
183-
['hello', 'mellow'].join(' ') // returns 'hello mellow'
184-
[].join() // returns ''
185-
[].join('/') // returns ''
182+
['hello', 'mellow'].join() // returns 'hellomellow'
183+
['hello', 'mellow'].join(' ') // returns 'hello mellow'
184+
[].join() // returns ''
185+
[].join('/') // returns ''
186186

187187
### LastIndexOf
188188

@@ -304,8 +304,8 @@ ASCII range.
304304

305305
Examples:
306306

307-
'TacoCat'.upperAscii() // returns 'TACOCAT'
308-
'TacoCÆt Xii'.upperAscii() // returns 'TACOCÆT XII'
307+
'TacoCat'.upperAscii() // returns 'TACOCAT'
308+
'TacoCÆt Xii'.upperAscii() // returns 'TACOCÆT XII'
309309

310310
## Encoders
311311

0 commit comments

Comments
 (0)