Updated comments

This commit is contained in:
Prianka Liz Kariat 2022-12-22 01:03:39 +05:30
parent 1de3694175
commit 99c11ff974

View File

@ -61,7 +61,7 @@ extern NSString *const MPPTasksErrorDomain;
/** /**
* Allocates a block of memory with the specified size and returns a pointer to it. If memory * Allocates a block of memory with the specified size and returns a pointer to it. If memory
* cannot be allocated because of an invalid memSize, it saves an error. In other cases, it * cannot be allocated because of an invalid `memSize`, it saves an error. In other cases, it
* terminates program execution. * terminates program execution.
* *
* @param memSize size of memory to be allocated * @param memSize size of memory to be allocated
@ -69,7 +69,7 @@ extern NSString *const MPPTasksErrorDomain;
* error will be saved. * error will be saved.
* *
* @return Pointer to the allocated block of memory on successfull allocation. `nil` in case as * @return Pointer to the allocated block of memory on successfull allocation. `nil` in case as
* error is encountered because of invalid memSize. If failure is due to any other reason, method * error is encountered because of invalid `memSize`. If failure is due to any other reason, method
* terminates program execution. * terminates program execution.
*/ */
+ (void *)mallocWithSize:(size_t)memSize error:(NSError **)error; + (void *)mallocWithSize:(size_t)memSize error:(NSError **)error;