Fixed comments

This commit is contained in:
Caspian Rychlik-Prince 2004-03-01 13:07:00 +00:00
parent c29d074927
commit efc2ce40f0
1 changed files with 4 additions and 4 deletions

View File

@ -71,8 +71,8 @@ public final class BufferUtils {
/** /**
* Construct a direct native-order shortbuffer with the specified number * Construct a direct native-order shortbuffer with the specified number
* of elements. * of elements.
* @param size The size, in shorts * @param size The size, in ints
* @return a ShortBuffer * @return an IntBuffer
*/ */
public static IntBuffer createIntBuffer(int size) { public static IntBuffer createIntBuffer(int size) {
return createByteBuffer(size << 2).asIntBuffer(); return createByteBuffer(size << 2).asIntBuffer();
@ -81,8 +81,8 @@ public final class BufferUtils {
/** /**
* Construct a direct native-order shortbuffer with the specified number * Construct a direct native-order shortbuffer with the specified number
* of elements. * of elements.
* @param size The size, in shorts * @param size The size, in floats
* @return a ShortBuffer * @return a FloatBuffer
*/ */
public static FloatBuffer createFloatBuffer(int size) { public static FloatBuffer createFloatBuffer(int size) {
return createByteBuffer(size << 2).asFloatBuffer(); return createByteBuffer(size << 2).asFloatBuffer();