diff scripts/miscellaneous/substruct.m @ 11472:1740012184f9

Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 21:33:04 -0800
parents fbd7843974fa
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/miscellaneous/substruct.m
+++ b/scripts/miscellaneous/substruct.m
@@ -59,12 +59,12 @@
       cells = cellfun ("isclass", sub, "cell");
       chars = cellfun ("isclass", sub, "char");
       if (any (braces &! cells))
-        error ("substruct: for type == () or {}, subs must be a cell array");
+        error ("substruct: for TYPE == () or {}, SUBS must be a cell array");
       elseif (any (dots &! chars))
-        error ("substruct: for type == ., subs must be a character string");
+        error ("substruct: for TYPE == ., SUBS must be a character string");
       endif
     else
-      error ("substruct: expecting type to be one of \"()\", \"{}\", or \".\"");
+      error ("substruct: expecting TYPE to be one of \"()\", \"{}\", or \".\"");
     endif
 
     retval = struct ("type", typ, "subs", sub);