diff --git a/docs/API/API-functions.md b/docs/API/API-functions.md
index f897ffcc2..1ba578691 100644
--- a/docs/API/API-functions.md
+++ b/docs/API/API-functions.md
@@ -666,7 +666,7 @@ internal use only.
| Returns | |
|:----------------------------- |:----------------------------------------------------------------------- |
| socket/group ID | On success, a valid SRT socket or group ID to be used for transmission. |
-| `SRT_ERROR` | (-1) on failure |
+| `SRT_INVALID_SOCK` | (-1) on failure |
| | |
| Errors | |
@@ -722,7 +722,7 @@ calling this function.
| Returns | |
|:----------------------------- |:---------------------------------------------------------------------- |
| SRT socket
group ID | On success, a valid SRT socket or group ID to be used for transmission |
-| `SRT_ERROR` | (-1) on failure |
+| `SRT_INVALID_SOCK` | (-1) on failure |
| | |
| Errors | |