Skip to content

Commit ef380a5

Browse files
committed
fix typo and javadoc
1 parent 7be11c7 commit ef380a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/auth0/exception/RateLimitException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Getters for {@code limit, remaining} and {@code reset} corresponds to {@code X-RateLimit-Limit, X-RateLimit-Remaining} and {@code X-RateLimit-Reset} HTTP headers.
77
* If the value of any headers is missing, then a default value -1 will assigned.
88
* <p>
9-
* "To learn more about rate limits, visit <a href="https://auth0.com/docs/policies/rate-limits">https://auth0.com/docs/policies/rate-limits</a>
9+
* To learn more about rate limits, visit <a href="https://auth0.com/docs/policies/rate-limits">https://auth0.com/docs/policies/rate-limits</a>
1010
*/
1111
public class RateLimitException extends APIException {
1212

@@ -25,23 +25,23 @@ public RateLimitException(long limit, long remaining, long reset) {
2525

2626
/**
2727
* Getter for the maximum number of requests available in the current time frame.
28-
* @return The maximun number of requests.
28+
* @return The maximum number of requests or -1 if missing.
2929
*/
3030
public long getLimit() {
3131
return limit;
3232
}
3333

3434
/**
3535
* Getter for the number of remaining requests in the current time frame.
36-
* @return Number of remaining requests.
36+
* @return Number of remaining requests or -1 if missing.
3737
*/
3838
public long getRemaining() {
3939
return remaining;
4040
}
4141

4242
/**
4343
* Getter for the UNIX timestamp of the expected time when the rate limit will reset.
44-
* @return The UNIX timestamp.
44+
* @return The UNIX timestamp or -1 if missing.
4545
*/
4646
public long getReset() {
4747
return reset;

0 commit comments

Comments
 (0)