Skip to content

Commit 7c15fc5

Browse files
committed
Cosmetic fixes (NFC)
- Added missing periods to end of comments - Remove extra whitespace - Add comment to endif at EOF indicating what it ends
1 parent 14197f6 commit 7c15fc5

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

stdlib/public/Platform/MachError.swift

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
/// kernel (it forces the kernel to restart the fault). It will not
9696
/// be seen by users.
9797
case KERN_MEMORY_DATA_MOVED = 24
98-
9998

10099
/// A strategic copy was attempted of an object upon which a quicker
101100
/// copy is now possible. The caller should retry the copy using
@@ -142,27 +141,27 @@
142141
/// thread_depress_abort was called on a thread which was not
143142
/// currently depressed.
144143
case KERN_NOT_DEPRESSED = 36
145-
146-
/// Object has been terminated and is no longer available
144+
145+
/// Object has been terminated and is no longer available.
147146
case KERN_TERMINATED = 37
148147

149148
/// Lock set has been destroyed and is no longer available.
150149
case KERN_LOCK_SET_DESTROYED = 38
151150

152-
/// The thread holding the lock terminated before releasing the lock
151+
/// The thread holding the lock terminated before releasing the lock.
153152
case KERN_LOCK_UNSTABLE = 39
154153

155-
/// The lock is already owned by another thread
154+
/// The lock is already owned by another thread.
156155
case KERN_LOCK_OWNED = 40
157156

158-
/// The lock is already owned by the calling thread
157+
/// The lock is already owned by the calling thread.
159158
case KERN_LOCK_OWNED_SELF = 41
160159

161160
/// Semaphore has been destroyed and is no longer available.
162161
case KERN_SEMAPHORE_DESTROYED = 42
163162

164163
/// Return from RPC indicating the target server was terminated
165-
/// before it successfully replied
164+
/// before it successfully replied.
166165
case KERN_RPC_SERVER_TERMINATED = 43
167166

168167
/// Terminate an orphaned activation.
@@ -171,7 +170,7 @@
171170
/// Allow an orphaned activation to continue executing.
172171
case KERN_RPC_CONTINUE_ORPHAN = 45
173172

174-
/// Empty thread activation (No thread linked to it)
173+
/// Empty thread activation (No thread linked to it).
175174
case KERN_NOT_SUPPORTED = 46
176175

177176
/// Remote node down or inaccessible.
@@ -180,7 +179,7 @@
180179
/// A signalled thread was not actually waiting.
181180
case KERN_NOT_WAITING = 48
182181

183-
/// Some thread-oriented operation (semaphore_wait) timed out
182+
/// Some thread-oriented operation (semaphore_wait) timed out.
184183
case KERN_OPERATION_TIMED_OUT = 49
185184

186185
/// During a page fault, indicates that the page was rejected as a
@@ -190,4 +189,4 @@
190189
/// The requested property cannot be changed at this time.
191190
case KERN_POLICY_STATIC = 51
192191
}
193-
#endif
192+
#endif // os(OSX) || os(iOS) || os(tvOS) || os(watchOS)

0 commit comments

Comments
 (0)