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

Commit78abbd4

Browse files
committed
Fix fordotnet#91: String module documentation is false (changeset 1292716)
1 parent26d1a7d commit78abbd4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,20 @@ namespace Microsoft.FSharp.Core
2222
/// <param name="strings">The sequence of strings to be concatenated.</param>
2323
/// <returns>A new string consisting of the concatenated strings separated by
2424
/// the separation string.</returns>
25-
/// <exception cref="System.ArgumentNullException">Thrown when strings is null.</exception>
25+
/// <exception cref="System.ArgumentNullException">Thrown when<c>strings</c> is null.</exception>
2626
[<CompiledName("Concat")>]
2727
valconcat:sep:string->strings:seq<string>->string
2828

2929
/// <summary>Applies the function <c>action</c> to each character in the string.</summary>
3030
/// <param name="action">The function to be applied to each character of the string.</param>
3131
/// <param name="str">The input string.</param>
32-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
3332
[<CompiledName("Iterate")>]
3433
valiter:action:(char-> unit)->str:string->unit
3534

3635
/// <summary>Applies the function <c>action</c> to the index of each character in the string and the
3736
/// character itself.</summary>
3837
/// <param name="action">The function to apply to each character and index of the string.</param>
3938
/// <param name="str">The input string.</param>
40-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
4139
[<CompiledName("IterateIndexed")>]
4240
valiteri:action:(int-> char-> unit)->str:string->unit
4341

@@ -46,7 +44,6 @@ namespace Microsoft.FSharp.Core
4644
/// <param name="mapping">The function to apply to the characters of the string.</param>
4745
/// <param name="str">The input string.</param>
4846
/// <returns>The resulting string.</returns>
49-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
5047
[<CompiledName("Map")>]
5148
valmap:mapping:(char-> char)->str:string->string
5249

@@ -55,7 +52,6 @@ namespace Microsoft.FSharp.Core
5552
/// <param name="mapping">The function to apply to each character and index of the string.</param>
5653
/// <param name="str">The input string.</param>
5754
/// <returns>The resulting string.</returns>
58-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
5955
[<CompiledName("MapIndexed")>]
6056
valmapi:mapping:(int-> char-> char)->str:string->string
6157

@@ -65,7 +61,6 @@ namespace Microsoft.FSharp.Core
6561
/// <param name="mapping">The function to produce a string from each character of the input string.</param>
6662
/// <param name="str">The input string.</param>
6763
/// <returns>The concatenated string.</returns>
68-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
6964
[<CompiledName("Collect")>]
7065
valcollect:mapping:(char-> string)->str:string->string
7166

@@ -84,30 +79,27 @@ namespace Microsoft.FSharp.Core
8479
/// <param name="predicate">The function to test each character of the string.</param>
8580
/// <param name="str">The input string.</param>
8681
/// <returns>True if all characters return true for the predicate and false otherwise.</returns>
87-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
8882
[<CompiledName("ForAll")>]
8983
valforall:predicate:(char-> bool)->str:string->bool
9084

9185
/// <summary>Tests if any character of the string satisfies the given predicate.</summary>
9286
/// <param name="predicate">The function to test each character of the string.</param>
9387
/// <param name="str">The input string.</param>
9488
/// <returns>True if any character returns true for the predicate and false otherwise.</returns>
95-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
9689
[<CompiledName("Exists")>]
9790
valexists:predicate:(char-> bool)->str:string->bool
9891

9992
/// <summary>Returns a string by concatenating <c>count</c> instances of <c>str</c>.</summary>
10093
/// <param name="count">The number of copies of the input string will be copied.</param>
10194
/// <param name="str">The input string.</param>
10295
/// <returns>The concatenated string.</returns>
103-
/// <exception cref="System.ArgumentNullException">Thrown whenthe input stringisnull.</exception>
96+
/// <exception cref="System.ArgumentException">Thrown when<c>count</c>isnegative.</exception>
10497
[<CompiledName("Replicate")>]
10598
valreplicate:count:int->str:string->string
10699

107100
/// <summary>Returns the length of the string.</summary>
108101
/// <param name="str">The input string.</param>
109102
/// <returns>The number of characters in the string.</returns>
110-
/// <exception cref="System.ArgumentNullException">Thrown when the input string is null.</exception>
111103
[<CompiledName("Length")>]
112104
vallength:str:string->int
113105

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp