fix: break reference cycling (#666)

This commit is contained in:
nuomi1 2023-07-31 03:32:19 +08:00 committed by GitHub
parent dbe3b4d6ba
commit a54ec55516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
class ListNode {
var val: Int //
var next: ListNode? //
var prev: ListNode? //
weak var prev: ListNode? //
init(val: Int) {
self.val = val