diff dwt/dwthelper/array.d @ 123:63a09873578e

Fixed compile errors
author Jacob Carlborg <doob@me.com>
date Thu, 15 Jan 2009 23:08:54 +0100
parents 2e671fa40eec
children 38807a925e24
line wrap: on
line diff
--- a/dwt/dwthelper/array.d	Wed Dec 31 21:01:13 2008 +0100
+++ b/dwt/dwthelper/array.d	Thu Jan 15 23:08:54 2009 +0100
@@ -26,6 +26,7 @@
  * Returns: the modified array
  * 
  * Throws: AssertException if the length of the array is 0
+ * Throws: AssertException if the element is null
  */
 T[] add (T) (ref T[] arr, T element)
 in
@@ -47,6 +48,7 @@
  * Returns: the modified array
  * 
  * Throws: AssertException if the length of the array is 0
+ * Throws: AssertException if the element is null
  */
 alias add addElement;
 
@@ -58,9 +60,6 @@
  *     index = the index of the element to get
  *     
  * Returns: the element at the specified index
- * 
- * Throws: AssertException if the length of the array is 0
- *         AssertException if the $(D_CODE index) is greater than the length of the array 
  */
 T elementAt (T) (T[] arr, int index)
 in
@@ -74,16 +73,13 @@
 }
 
 /**
- * Gets the element at the specified position in the array
+ * Gets the element at the specified index
  * 
  * Params:
  *     arr = the array to get the element from
  *     index = the index of the element to get
  *     
- * Returns: the element at the specified position
- * 
- * Throws: AssertException if the length of the array is 0
- *         AssertException if the $(D_CODE index) is greater than the length of the array 
+ * Returns: the element at the specified index
  */
 alias elementAt get;
 
@@ -112,7 +108,7 @@
  * Returns: the element that was removed or $(D_CODE null)
  * 
  * Throws: AssertException if the length of the array is 0
- *         AssertException if the $(D_CODE index) argument is
+ * Throws: AssertException if the $(D_CODE index) argument is
  *         negative or not less than the length of this array.
  */
 T remove (T) (ref T[] arr, int index)