diff options
author | Wouter van Oortmerssen <wvo@google.com> | 2014-07-02 12:01:21 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <wvo@google.com> | 2014-07-02 14:39:59 -0700 |
commit | a5f50019bc979c352bb7e0c08b8bbfd8ab06af4d (patch) | |
tree | 3824f45cbad123a499791947dd046aea3711ad6b /docs | |
parent | b863ac0171500634406b10577c59853bce615e7c (diff) | |
download | flatbuffers-a5f50019bc979c352bb7e0c08b8bbfd8ab06af4d.tar.gz flatbuffers-a5f50019bc979c352bb7e0c08b8bbfd8ab06af4d.tar.bz2 flatbuffers-a5f50019bc979c352bb7e0c08b8bbfd8ab06af4d.zip |
Made declaring the underlying type of an enum mandatory.
This is a breaking change, anyone having schema files with enums
that do not specify a type will get a specialized error:
must specify the underlying integer type for this
enum (e.g. ': short', which was the default).
All of the samples and docs already had a type specified,
so hopefully this will affect very few people.
Bug: 15777205
Change-Id: I9b8d7c0827867f7efb6c217346db7e402695eff0
Tested: on Windows
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/source/Schemas.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/source/Schemas.md b/docs/source/Schemas.md index 8398af34..6e20289f 100755 --- a/docs/source/Schemas.md +++ b/docs/source/Schemas.md @@ -121,8 +121,7 @@ Define a sequence of named constants, each with a given value, or increasing by one from the previous one. The default first value is `0`. As you can see in the enum declaration, you specify the underlying integral type of the enum with `:` (in this case `byte`), which then determines -the type of any fields declared with this enum type. If you omit the underlying -type, it will be `short`. +the type of any fields declared with this enum type. ### Unions |