From bc81ce42529ea5d33278348bf8d467c015ef065b Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Sat, 14 May 2016 06:56:12 -0500 Subject: [PATCH] Update Rx.swift --- RxSwift/Rx.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/RxSwift/Rx.swift b/RxSwift/Rx.swift index 5b6d9ff7..8e33574e 100644 --- a/RxSwift/Rx.swift +++ b/RxSwift/Rx.swift @@ -9,16 +9,11 @@ import Foundation #if TRACE_RESOURCES -/** -Counts internal Rx resources (Observables, Observers, Disposables ...). - -It provides a really simple way to detect leaks early during development. -*/ +/// Counts internal Rx resource allocations (Observables, Observers, Disposables, etc.). This provides a simple way to detect leaks during development. public var resourceCount: AtomicInt = 0 #endif -// Swift doesn't have a concept of abstract metods. -// This function is being used as a runtime check that abstract methods aren't being called. +/// Swift does not implement abstract methods. This method is used as a runtime check to ensure that methods which intended to be abstract (i.e., they should be implemented in subclasses) are not called directly on the superclass. @noreturn func abstractMethod() -> Void { rxFatalError("Abstract method") }