Skip to content

Commit

Permalink
Update literals.rst (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlee committed Mar 24, 2022
1 parent 12b5adf commit afbd1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/literals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ slicing, as in EdgeQL.
const myString = e.str("hello world");
myString[5]; // "hello world"[5]
myString['2:5']; // "hello world"[0:5]
myString['2:5']; // "hello world"[2:5]
myString[':5']; // "hello world"[:5]
myString['2:']; // "hello world"[:5]
myString['2:']; // "hello world"[2:]
There are also equivalent ``.index`` and ``.slice`` methods that can accept
integer expressions as arguments.
Expand Down

0 comments on commit afbd1cf

Please sign in to comment.