Skip to content

Commit 3c6dfd7

Browse files
AldeRobergejkotas
andauthored
Fixed typos in header comment of TimeSpan.cs (#117621)
* Fixed typo "leap-years" instead of "leap years". * Delete obsolete WinRT comment --------- Co-authored-by: Jan Kotas <[email protected]>
1 parent 7f1d8d0 commit 3c6dfd7

File tree

1 file changed

+1
-7
lines changed
  • src/libraries/System.Private.CoreLib/src/System

1 file changed

+1
-7
lines changed

src/libraries/System.Private.CoreLib/src/System/TimeSpan.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@ namespace System
1515
// to 100 nanoseconds. While this maps well into units of time such as hours
1616
// and days, any periods longer than that aren't representable in a nice fashion.
1717
// For instance, a month can be between 28 and 31 days, while a year
18-
// can contain 365 or 366 days. A decade can have between 1 and 3 leap-years,
18+
// can contain 365 or 366 days. A decade can have between 1 and 3 leap years,
1919
// depending on when you map the TimeSpan into the calendar. This is why
2020
// we do not provide Years() or Months().
2121
//
22-
// Note: System.TimeSpan needs to interop with the WinRT structure
23-
// type Windows::Foundation:TimeSpan. These types are currently binary-compatible in
24-
// memory so no custom marshalling is required. If at any point the implementation
25-
// details of this type should change, or new fields added, we need to remember to add
26-
// an appropriate custom ILMarshaler to keep WInRT interop scenarios enabled.
27-
//
2822
[Serializable]
2923
public readonly struct TimeSpan
3024
: IComparable,

0 commit comments

Comments
 (0)