From 948f74d804927caacc73680bdd7a29365cd02a86 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Thu, 22 Aug 2013 17:47:44 -0700 Subject: [PATCH] Updated capnp schema to conform with new union rules --- examples/addressbook.capnp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/addressbook.capnp b/examples/addressbook.capnp index 140beec..02e626a 100644 --- a/examples/addressbook.capnp +++ b/examples/addressbook.capnp @@ -17,11 +17,11 @@ struct Person { } } - employment @4 union { - unemployed @5 :Void; - employer @6 :Text; - school @7 :Text; - selfEmployed @8 :Void; + employment :union { + unemployed @4 :Void; + employer @5 :Text; + school @6 :Text; + selfEmployed @7 :Void; # We assume that a person is only one of these. } }