Skip to content

Commit b37e0a6

Browse files
authored
Merge pull request #91 from lorentey/regenerate-sources
Regenerate sources
2 parents 1c2c004 + 4138292 commit b37e0a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/Atomics/autogenerated/AtomicLazyReference.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,16 @@ extension UnsafeAtomicLazyReference {
177177
///
178178
/// ```
179179
/// class Image {
180-
/// var _histogram: UnsafeAtomicLazyReference<Histogram> = ...
180+
/// var _histogram: UnsafeAtomicLazyReference<Histogram> = .init()
181181
///
182182
/// // This is safe to call concurrently from multiple threads.
183183
/// var atomicLazyHistogram: Histogram {
184-
/// if let histogram = _histogram.load() { return foo }
184+
/// if let histogram = _histogram.load() { return histogram }
185185
/// // Note that code here may run concurrently on
186186
/// // multiple threads, but only one of them will get to
187187
/// // succeed setting the reference.
188188
/// let histogram = ...
189-
/// return _histogram.storeIfNilThenLoad(foo)
189+
/// return _histogram.storeIfNilThenLoad(histogram)
190190
/// }
191191
/// ```
192192
///
@@ -227,16 +227,16 @@ extension ManagedAtomicLazyReference {
227227
///
228228
/// ```
229229
/// class Image {
230-
/// var _histogram: UnsafeAtomicLazyReference<Histogram> = ...
230+
/// var _histogram: UnsafeAtomicLazyReference<Histogram> = .init()
231231
///
232232
/// // This is safe to call concurrently from multiple threads.
233233
/// var atomicLazyHistogram: Histogram {
234-
/// if let histogram = _histogram.load() { return foo }
234+
/// if let histogram = _histogram.load() { return histogram }
235235
/// // Note that code here may run concurrently on
236236
/// // multiple threads, but only one of them will get to
237237
/// // succeed setting the reference.
238238
/// let histogram = ...
239-
/// return _histogram.storeIfNilThenLoad(foo)
239+
/// return _histogram.storeIfNilThenLoad(histogram)
240240
/// }
241241
/// ```
242242
///

0 commit comments

Comments
 (0)