Skip to content

Commit

Permalink
Fix documentation about controller creation on Darwin.
Browse files Browse the repository at this point in the history
createController does not exist, but the comments have not been updated to reflect that.
  • Loading branch information
bzbarsky-apple committed Mar 26, 2024
1 parent 04251f1 commit b6319da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDeviceControllerFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b6319da

Please sign in to comment.