File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,8 @@ generics. Some more examples of generics:
319
319
320
320
func myAlgorithm(_ a: [T], length: Int) { ... }
321
321
322
- // The compiler can specialize code of MyStack[ Int]
323
- var stackOfInts: MyStack[ Int]
322
+ // The compiler can specialize code of MyStack< Int>
323
+ var stackOfInts: MyStack< Int>
324
324
// Use stack of ints.
325
325
for i in ... {
326
326
stack.push(...)
@@ -522,15 +522,15 @@ count operations are expensive and unavoidable when using Swift classes.
522
522
Advice: Use unmanaged references to avoid reference counting overhead
523
523
---------------------------------------------------------------------
524
524
525
- Note, ``Unmanaged<T>._withUnsafeGuaranteedRef `` is not public api and will go
525
+ Note, ``Unmanaged<T>._withUnsafeGuaranteedRef `` is not a public API and will go
526
526
away in the future. Therefore, don't use it in code that you can not change in
527
527
the future.
528
528
529
529
In performance-critical code you can choose to use unmanaged references. The
530
530
``Unmanaged<T> `` structure allows developers to disable automatic reference
531
531
counting for a specific reference.
532
532
533
- When you do this you need to make sure that there exists another reference to
533
+ When you do this, you need to make sure that there exists another reference to
534
534
instance held by the ``Unmanaged `` struct instance for the duration of the use
535
535
of ``Unmanaged `` (see `Unmanaged.swift `_ for more details) that keeps the instance
536
536
alive.
You can’t perform that action at this time.
0 commit comments