Skip to content

Commit

Permalink
removed deprecation explanation which is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 21, 2024
1 parent d6c40d5 commit 11f6a42
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/org/rascalmpl/library/String.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,12 @@ public java str trim(str s);
Squeeze repeated occurrences in `src` of characters in `charSet` removed.
See http://commons.apache.org/lang/api-2.6/index.html?org/apache/commons/lang/text/package-summary.html[Apache]
for the allowed syntax in `charSet`.
This function was deprecated because it introduces yet another syntax for character classes, with
specific escapes next to already existing notation in syntax symbols and regular expressions.
Better use the other ((squeeze)) function.
}
@examples{
```rascal-shell
import String;
squeeze("hello", "el");
// the other squeeze function uses character class types instead:
squeeze("hello", "el") == squeeze("hello", #[el]);
```
}
Expand Down

0 comments on commit 11f6a42

Please sign in to comment.