Skip to content

Commit ed84245

Browse files
author
QuickSander
committed
fix mistake in readme
1 parent 85648f7 commit ed84245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if (success) // If no HTTP parsing error or read timeout occurred.
2121
{
2222
// See interface api for other methods.
2323
const char *body( httpRequest.getBody() );
24-
// Retrieve 2nd part of the resource URL. E.g. state from: "/api/sensors/1/state"
25-
const String& restFunction( httpRequest.getResource()[1] );
24+
// Retrieve 3rd part of the resource URL. E.g. state from: "/api/sensors/1/state"
25+
const String& restFunction( httpRequest.getResource()[3] );
2626
}
2727
```
2828

0 commit comments

Comments
 (0)