From 24b5b905e1653c4084d46465342ed9c87460a5c2 Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 14 Oct 2008 21:06:28 +0000 Subject: [PATCH] A couple of example usage fixes. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5442 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Enum.as | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/util/Enum.as b/src/as/com/threerings/util/Enum.as index 5080e6927..d54c3a39d 100644 --- a/src/as/com/threerings/util/Enum.as +++ b/src/as/com/threerings/util/Enum.as @@ -31,8 +31,8 @@ import flash.utils.Dictionary; * * public final class Foo extends Enum * { - * public static const ONE = new Foo("ONE"); - * public static const TWO = new Foo("TWO"); + * public static const ONE :Foo = new Foo("ONE"); + * public static const TWO :Foo = new Foo("TWO"); * finishedEnumerating(Foo); * * // {at}private @@ -43,7 +43,7 @@ import flash.utils.Dictionary; * * public static function valueOf (name :String) :Foo * { - * return Enum.valueOf(Foo, name); + * return Enum.valueOf(Foo, name) as Foo; * } * * public static function values () :Array