Skip to content

Commit b6319da

Browse files
Fix documentation about controller creation on Darwin.
createController does not exist, but the comments have not been updated to reflect that.
1 parent 04251f1 commit b6319da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
158158
* the startupParams.
159159
*
160160
* This method can only be used if the factory was initialized with storage.
161-
* When using per-controller storage, use createController.
161+
* When using per-controller storage, use [MTRDeviceController initWithParameters:error:].
162162
*/
163163
- (MTRDeviceController * _Nullable)createControllerOnExistingFabric:(MTRDeviceControllerStartupParams *)startupParams
164164
error:(NSError * __autoreleasing *)error;
@@ -172,7 +172,7 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
172172
* the startupParams.
173173
*
174174
* This method can only be used if the factory was initialized with storage.
175-
* When using per-controller storage, use createController.
175+
* When using per-controller storage, use [MTRDeviceController initWithParameters:error:].
176176
*/
177177
- (MTRDeviceController * _Nullable)createControllerOnNewFabric:(MTRDeviceControllerStartupParams *)startupParams
178178
error:(NSError * __autoreleasing *)error;

0 commit comments

Comments
 (0)