Skip to content

Commit

Permalink
Merge pull request swiftlang#804 from raylillywhite/patch-1
Browse files Browse the repository at this point in the history
[stdlib] Add documentation for `===`
  • Loading branch information
gribozavr committed Dec 30, 2015
2 parents 0f11d92 + 4f90ba1 commit f9c2cd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stdlib/public/core/Policy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ public protocol AnyObject : class {}
/// - SeeAlso: `AnyObject`
public typealias AnyClass = AnyObject.Type

/// Returns true iff `lhs` and `rhs` are references to the same object
/// instance (in other words, are identical pointers).
///
/// - SeeAlso: `Equatable`, `==`
@warn_unused_result
public func === (lhs: AnyObject?, rhs: AnyObject?) -> Bool {
switch (lhs, rhs) {
Expand Down Expand Up @@ -447,4 +451,3 @@ infix operator |= { associativity right precedence 90 assignment }
// example of how this operator is used, and how its use can be hidden
// from users.
infix operator ~> { associativity left precedence 255 }

0 comments on commit f9c2cd1

Please sign in to comment.