Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Correct documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamuel-bs committed Nov 16, 2017
1 parent c7dff29 commit 133e943
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* to the return value of {@link #acquire()}.
* 2) A new method {@link #steal(int)} was added, to support taking permits without waiting
* 3) Some static constructors were removed.
*
**/
public abstract class RateLimiter {

Expand Down Expand Up @@ -206,7 +207,7 @@ public boolean tryAcquire() {

/**
* Acquires the given number of permits from this {@code RateLimiter} if it can be obtained
* without exceeding the specified {@code timeout}, or returns {@code false} immediately (without
* without exceeding the specified {@code timeout}, or returns {@code empty} immediately (without
* waiting) if the permits would not have been granted before the timeout expired.
*
* @param permits the number of permits to acquire
Expand Down

0 comments on commit 133e943

Please sign in to comment.