Commits

Stepan Koltsov committed ef4dbad

s/then/than/

  • Participants
  • Parent commits 4011df3

Comments (0)

Files changed (4)

File src/main/java/ru/yandex/bolts/collection/example/ListFExample.java

         // "take" first elements
         assertEquals(Cf.list(1, 2), Cf.list(1, 2, 3, 4).take(2));
 
-        // it is OK to take more elements then collection contains
+        // it is OK to take more elements than collection contains
         assertEquals(Cf.list(1, 2), Cf.list(1, 2).take(10));
 
         // "drop" first elements

File src/main/java/ru/yandex/bolts/collection/impl/AbstractTraversableF.java

         IteratorF<E> i = iterator();
         E r = i.next();
         if (i.hasNext()) {
-            throw new NoSuchElementException("more then one element");
+            throw new NoSuchElementException("more than one element");
         }
         return r;
     }
         IteratorF<E> i = iterator();
         Option<E> r = i.nextO();
         if (i.hasNext()) {
-            throw new NoSuchElementException("more then one element");
+            throw new NoSuchElementException("more than one element");
         }
         return r;
     }

File src/main/java/ru/yandex/bolts/function/Function1I.java

         return apply(o);
     }
 
-    /** Greater then */
+    /** Greater than */
     public boolean gt(A o) {
         return compareTo(o) > 0;
     }
         return compareTo(o) != 0;
     }
 
-    /** Less then */
+    /** Less than */
     public boolean lt(A o) {
         return compareTo(o) < 0;
     }
         };
     }
 
-    /** Less then Function1B */
+    /** Less than Function1B */
     public Function1B<A> ltF() {
         return new OperatorFunction1B() {
             public boolean apply(A a) {

File src/main/java/ru/yandex/bolts/function/forhuman/Comparator.java

     }
 
     /**
-     * Compare {@link java.lang.Comparable}s. Null values are less then non-null.
+     * Compare {@link java.lang.Comparable}s. Null values are less than non-null.
      */
     public static <A extends java.lang.Comparable<?>> Comparator<A> naturalComparator()  {
         return new Comparator<A>() {