From 45531216a4e22b9ec99591e224595b194343c18d Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 26 Mar 2024 13:38:16 -0400 Subject: [PATCH] Fix documentation about controller creation on Darwin. (#32716) createController does not exist, but the comments have not been updated to reflect that. --- src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h b/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h index d1efa99cda14e6..b5ef1ffaa6cf32 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h @@ -158,7 +158,7 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) * the startupParams. * * This method can only be used if the factory was initialized with storage. - * When using per-controller storage, use createController. + * When using per-controller storage, use [MTRDeviceController initWithParameters:error:]. */ - (MTRDeviceController * _Nullable)createControllerOnExistingFabric:(MTRDeviceControllerStartupParams *)startupParams error:(NSError * __autoreleasing *)error; @@ -172,7 +172,7 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) * the startupParams. * * This method can only be used if the factory was initialized with storage. - * When using per-controller storage, use createController. + * When using per-controller storage, use [MTRDeviceController initWithParameters:error:]. */ - (MTRDeviceController * _Nullable)createControllerOnNewFabric:(MTRDeviceControllerStartupParams *)startupParams error:(NSError * __autoreleasing *)error;