# HG changeset patch # User rriggs # Date 1458743262 -19800 # Node ID 616fd89e60ac7be756479e1ecac0e8502feadd9e # Parent 044bf6a5474aabcf0c11fa24ae734fbb21ab35a3 8151868: Typo in java.time.Instant until(Temporal endExclusive, TemporalUnit unit) Reviewed-by: rriggs, lancea, scolebourne Contributed-by: Abhijit Roy diff -r 044bf6a5474a -r 616fd89e60ac jdk/src/java.base/share/classes/java/time/Instant.java --- a/jdk/src/java.base/share/classes/java/time/Instant.java Wed Mar 23 12:25:08 2016 +0000 +++ b/jdk/src/java.base/share/classes/java/time/Instant.java Wed Mar 23 19:57:42 2016 +0530 @@ -1106,7 +1106,7 @@ * complete units between the two instants. * The {@code Temporal} passed to this method is converted to a * {@code Instant} using {@link #from(TemporalAccessor)}. - * For example, the amount in days between two dates can be calculated + * For example, the amount in seconds between two dates can be calculated * using {@code startInstant.until(endInstant, SECONDS)}. *

* There are two equivalent ways of using this method.