Skip to content

Commit 0aae122

Browse files
committed
Make FixedSingle default constructor private
1 parent 229c22b commit 0aae122

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

skiplang/prelude/src/skstore/FixedDir.sk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,13 @@ base class IFixedDir<+T: frozen, RowRepresentation: frozen> protected {
389389
}
390390

391391
/*****************************************************************************/
392-
/* Immutable set (represented with an Array), where the elements are
392+
/* Immutable map (represented with an Array), where the elements are
393393
* guaranteed to be unique. */
394394
/*****************************************************************************/
395395

396-
class FixedSingle<K: Orderable, +V: frozen>(data: Array<(K, V)> = Array[]) {
396+
class FixedSingle<K: Orderable, +V: frozen> private (
397+
data: Array<(K, V)> = Array[],
398+
) {
397399
static fun empty(): this {
398400
FixedSingle()
399401
}

0 commit comments

Comments
 (0)