From 523657c83ae5b1e723744603595c856fb960fe5d Mon Sep 17 00:00:00 2001 From: o0oi1i Date: Thu, 24 Jun 2021 10:13:03 +0800 Subject: [PATCH] Logic modification Should the logic be synchronize the page numbers of the old projector to the new projector? --- Sources/FactoryMethod/RealWorld/Example.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FactoryMethod/RealWorld/Example.swift b/Sources/FactoryMethod/RealWorld/Example.swift index b396380..d9dd65e 100644 --- a/Sources/FactoryMethod/RealWorld/Example.swift +++ b/Sources/FactoryMethod/RealWorld/Example.swift @@ -71,7 +71,7 @@ extension Projector { /// Base implementation of Projector methods func sync(with projector: Projector) { - projector.update(with: currentPage) + update(with: projector.currentPage) } }