Commit 6beb6946 authored by Jakub Śpiewak's avatar Jakub Śpiewak

doc: Update annotation code sample.

parent 4f4c5a01
...@@ -481,7 +481,7 @@ $baz(1); # Annotate the file. ...@@ -481,7 +481,7 @@ $baz(1); # Annotate the file.
struct MyStruct $baz(2) { struct MyStruct $baz(2) {
myField @0 :Text = "default" $baz(3); myField @0 :Text = "default" $baz(3);
myUnion @1 union $baz(4) { myUnion :union $baz(4) {
# ... # ...
} }
} }
...@@ -491,7 +491,7 @@ enum MyEnum $baz(5) { ...@@ -491,7 +491,7 @@ enum MyEnum $baz(5) {
} }
interface MyInterface $baz(7) { interface MyInterface $baz(7) {
myMethod(myParam :Text $baz(9)) :Void $baz(8); myMethod @0 (myParam :Text $baz(9)) -> () $baz(8);
} }
annotation myAnnotation(struct) :Int32 $baz(10); annotation myAnnotation(struct) :Int32 $baz(10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment