You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/stdlib-types.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -805,9 +805,6 @@ The following operations are supported for strings:
805
805
`[] : (String, int) -> char`
806
806
: Given a string and an index, returns the character at the given index in the string.
807
807
808
-
`in, !in : (String, String) -> boolean`
809
-
: Given a substring and a string, returns `true` if the substring occurs anywhere in the string (or not).
810
-
811
808
`~ : (String) -> Pattern`
812
809
: Creates a regular expression from a string.
813
810
: See [Pattern](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html) in the Java standard library for more information.
@@ -821,6 +818,9 @@ The following operations are supported for strings:
821
818
822
819
The following methods are available for a string:
823
820
821
+
`contains( str: String ) -> boolean`
822
+
: Returns `true` if the given substring occurs anywhere in the string.
823
+
824
824
`endsWith( suffix: String ) -> boolean`
825
825
: Returns `true` if the string ends with the given suffix.
0 commit comments