altoslib: capitalize 'Invalid' state name appropriately
authorKeith Packard <keithp@keithp.com>
Tue, 23 Oct 2012 04:36:12 +0000 (21:36 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 23 Oct 2012 04:36:12 +0000 (21:36 -0700)
It shouldn't ever appear, but it seemed wrong to have it not match the
rest of the strings.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosLib.java

index 192c445e0c42dabe2b9e3c42a209fe8843e9269c..07516aebd389fe3af4fcac245ffb42fa25ef8b1c 100644 (file)
@@ -199,7 +199,7 @@ public class AltosLib {
 
        public static String state_name_capital(int state) {
                if (state < 0 || state_to_string.length <= state)
-                       return "invalid";
+                       return "Invalid";
                return state_to_string_capital[state];
        }