changeset 356:426ab95c0e73

- Added an assert to loadFile().
author aziz
date Sun, 26 Aug 2007 11:40:04 +0000
parents 944a917447b4
children 2a56fe53383d
files trunk/src/dil/File.d
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/File.d	Sun Aug 26 11:23:04 2007 +0000
+++ b/trunk/src/dil/File.d	Sun Aug 26 11:40:04 2007 +0000
@@ -15,7 +15,7 @@
   switch (bom)
   {
   case BOM.None:
-    // No BOM found. The spec says in this case that the first character
+    // No BOM found. According to the specs the first character
     // must be an ASCII character.
     if (data.length >= 4)
     {
@@ -56,8 +56,7 @@
   default:
     assert(0);
   }
-
-
+  assert(text !is null);
   return text;
 }