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

Commit6022512

Browse files
forkiTIHan
authored andcommitted
Replicate can use higher capacity (dotnet#5639)
1 parent8d351f2 commit6022512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/fsharp/FSharp.Core/string.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace Microsoft.FSharp.Core
7676
letreplicate(count:int)(str:string)=
7777
if count<0then invalidArgInputMustBeNonNegative"count" count
7878
letstr= emptyIfNull str
79-
letres= StringBuilderstr.Length
79+
letres= StringBuilder(count*str.Length)
8080
for i=0to count-1do
8181
res.Append str|> ignore
8282
res.ToString()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp