Make ReadWriteLock.init internal (#496)

### Motivation:

`public` init has no effect for an `internal` class.

### Modifications:

Removed `public` from the `ReadWriteLock.init`.

### Result:

`ReadWriteLock.init` is now `internal`, matching class visibility.
This commit is contained in:
Vladimir Kukushkin authored and GitHub committed 2026-08-04 14:02:34 +02:00
1 parent 7af2de138f
commit 3ffafb9722
1 file changed
+1 -1
+1 -1
View File
@@ -196,7 +196,7 @@ internal final class ReadWriteLock: @unchecked Sendable {
#endif
/// Create a new lock.
public init() {
init() {
#if os(Windows)
InitializeSRWLock(self.rwlock)
#elseif (compiler(<6.1) && !os(WASI)) || (compiler(>=6.1) && _runtime(_multithreaded))