Misleading xTaskNotifyStateClear example?

The example for xTaskNotifyStateClear in www freertos org/xTaskNotifyStateClear.html shows that we are supposed to clear the state of the notification when using it along with ulTaskNotifyTake but this function works on the notification value, not the notification state.

Is it possible the example is not correct and thus misleading?

Thanks

That is not completely correct - ulTaskNotifyTake returns the notification count but it does not mean that it does not work on the notification state. See here - https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/tasks.c#L6806