Skip to content

Commit 378c20d

Browse files
committed
tests
1 parent e97f3e7 commit 378c20d

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/PolylineAlgorithm/Polyline.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ namespace PolylineAlgorithm;
2121
public readonly struct Polyline : IEquatable<Polyline> {
2222
private readonly ReadOnlyMemory<char> _value;
2323

24-
///// <summary>
25-
///// Initializes a new instance of the <see cref="Polyline"/> struct with the specified character sequence.
26-
///// </summary>
27-
///// <param name="value">
28-
///// A read-only span of characters representing an encoded polyline.
29-
///// </param>
30-
//public Polyline(ReadOnlySpan<char> value) {
31-
// if (value.IsEmpty) {
32-
// _value = ReadOnlyMemory<char>.Empty;
33-
// } else {
34-
// _value = new ReadOnlyMemory<char>(value.ToArray());
35-
// }
36-
//}
24+
/// <summary>
25+
/// Initializes a new instance of the <see cref="Polyline"/> struct with the specified character sequence.
26+
/// </summary>
27+
/// <param name="value">
28+
/// A read-only span of characters representing an encoded polyline.
29+
/// </param>
30+
public Polyline(ReadOnlySpan<char> value) {
31+
if (value.IsEmpty) {
32+
_value = ReadOnlyMemory<char>.Empty;
33+
} else {
34+
_value = new ReadOnlyMemory<char>(value.ToArray());
35+
}
36+
}
3737

3838
/// <summary>
3939
/// Initializes a new, empty instance of the <see cref="Polyline"/> struct.

0 commit comments

Comments
 (0)