Skip to content

Commit 4234e27

Browse files
author
Petr Sramek
committed
updated xml comments
1 parent a4e627f commit 4234e27

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/PolylineAlgorithm/PolylineDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ public sealed class PolylineDecoder(ICoordinateValidator validator) : IPolylineD
66
public ICoordinateValidator Validator { get; } = validator ?? throw new ArgumentNullException(nameof(validator));
77

88
/// <summary>
9-
/// Method decodes polyline encoded representation to coordinates.
9+
/// Decodes polyline representation.
1010
/// </summary>
1111
/// <param name="source">Encoded polyline string to decode</param>
12-
/// <returns>Returns coordinates.</returns>
12+
/// <returns>Returns coordinates</returns>
1313
/// <exception cref="ArgumentException">If polyline argument is null -or- empty char array.</exception>
1414
/// <exception cref="InvalidOperationException">If polyline representation is not in correct format.</exception>
1515
public IEnumerable<(double Latitude, double Longitude)> Decode(string polyline) {

src/PolylineAlgorithm/PolylineEncoder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ public sealed class PolylineEncoder(ICoordinateValidator validator) : IPolylineE
1717
public ICoordinateValidator Validator { get; } = validator ?? throw new ArgumentNullException(nameof(validator));
1818

1919
/// <summary>
20-
/// Method encodes coordinates to polyline encoded representation
20+
/// Encodes coordinates to polyline representation
2121
/// </summary>
2222
/// <param name="coordinates">Coordinates to encode</param>
2323
/// <returns>Polyline encoded representation</returns>
24-
/// <exception cref="ArgumentException">If coordinates parameter is null</exception>
24+
/// <exception cref="ArgumentNullException">If coordinates parameter is null</exception>
2525
/// <exception cref="ArgumentException">If coordinates parameter is empty</exception>
26-
/// <exception cref="AggregateException">If one or more coordinate is out of range</exception>
26+
/// <exception cref="AggregateException">If one or more coordinate is out of valid range</exception>
2727
public string Encode(IEnumerable<(double Latitude, double Longitude)> coordinates) {
2828
if (coordinates is null) {
2929
throw new ArgumentNullException(nameof(coordinates));

0 commit comments

Comments
 (0)