Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cb0d04

Browse files
forkiKevinRansom
authored andcommitted
Do not use weird implementation of contains (dotnet#5672)
1 parente6565e6 commit0cb0d04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/absil/illib.fs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ module String =
469469
letr= s.LastIndexOf(c)
470470
if r=-1then indexNotFound()else r
471471

472-
letcontains(s:string)(c:char)=
473-
s.IndexOf(c,0,String.length s)<>-1
472+
letcontains(s:string)(c:char)= s.IndexOf(c)<>-1
474473

475474
letorder= LanguagePrimitives.FastGenericComparer<string>
476475

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp