@@ -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