Skip to content

Commit

Permalink
Use _typeName instead of String.init(reflecting:) (pointfreeco#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored Jun 20, 2022
1 parent 21ec1d7 commit 11ccf4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CustomDump/Internal/AnyType.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
func typeName(_ type: Any.Type) -> String {
var name = String(reflecting: type)
var name = _typeName(type)
if let index = name.firstIndex(of: ".") {
name.removeSubrange(...index)
}
Expand Down

0 comments on commit 11ccf4c

Please sign in to comment.