Skip to content

Commit

Permalink
Make cref references in doc comments match in nullability
Browse files Browse the repository at this point in the history
This allows docfx to generate metadata. It generates it incorrectly, but that's a separate matter...
  • Loading branch information
jskeet committed Feb 1, 2019
1 parent f696aaf commit 083fc9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/NodaTime/DateInterval.cs
Expand Up @@ -60,7 +60,7 @@ public DateInterval(LocalDate start, LocalDate end)
}

/// <summary>
/// Returns the hash code for this interval, consistent with <see cref="Equals(DateInterval)"/>.
/// Returns the hash code for this interval, consistent with <see cref="Equals(DateInterval?)"/>.
/// </summary>
/// <returns>The hash code for this interval.</returns>
public override int GetHashCode() =>
Expand Down Expand Up @@ -113,10 +113,10 @@ public DateInterval(LocalDate start, LocalDate end)
public bool Equals(DateInterval? other) => this == other;

/// <summary>
/// Compares the given object for equality with this one, as per <see cref="Equals(DateInterval)"/>.
/// Compares the given object for equality with this one, as per <see cref="Equals(DateInterval?)"/>.
/// </summary>
/// <param name="obj">The value to compare this one with.</param>
/// <returns>true if the other object is a date interval equal to this one, consistent with <see cref="Equals(DateInterval)"/>.</returns>
/// <returns>true if the other object is a date interval equal to this one, consistent with <see cref="Equals(DateInterval?)"/>.</returns>
public override bool Equals(object obj) => this == (obj as DateInterval);

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/NodaTime/Period.cs
Expand Up @@ -829,14 +829,14 @@ public Duration ToDuration()
public override string ToString() => PeriodPattern.Roundtrip.Format(this);

/// <summary>
/// Compares the given object for equality with this one, as per <see cref="Equals(Period)"/>.
/// Compares the given object for equality with this one, as per <see cref="Equals(Period?)"/>.
/// </summary>
/// <param name="other">The value to compare this one with.</param>
/// <returns>true if the other object is a period equal to this one, consistent with <see cref="Equals(Period)"/></returns>
/// <returns>true if the other object is a period equal to this one, consistent with <see cref="Equals(Period?)"/></returns>
public override bool Equals(object? other) => Equals(other as Period);

/// <summary>
/// Returns the hash code for this period, consistent with <see cref="Equals(Period)"/>.
/// Returns the hash code for this period, consistent with <see cref="Equals(Period?)"/>.
/// </summary>
/// <returns>The hash code for this period.</returns>
public override int GetHashCode() =>
Expand Down

0 comments on commit 083fc9e

Please sign in to comment.