diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-01-02 14:23:40 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-30 09:03:25 +0200 |
commit | 7d317ebfd78bb0e569f277e31b0f4522469b48af (patch) | |
tree | 208fc9a6d55286bf0d4ad51c6e38046263a62b76 /vala/valainitializerlist.vala | |
parent | 469d043f9c2bb9492392048975809fa4388ca63e (diff) | |
download | vala-7d317ebfd78bb0e569f277e31b0f4522469b48af.tar.gz |
vala: Let methods return an unowned reference to internal collections
Correctly state ownership in documentation since those were never a copy.
Diffstat (limited to 'vala/valainitializerlist.vala')
-rw-r--r-- | vala/valainitializerlist.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valainitializerlist.vala b/vala/valainitializerlist.vala index a8cdea14d..cdafd0923 100644 --- a/vala/valainitializerlist.vala +++ b/vala/valainitializerlist.vala @@ -41,11 +41,11 @@ public class Vala.InitializerList : Expression { } /** - * Returns a copy of the expression + * Returns the initalizer expression list * * @return expression list */ - public List<Expression> get_initializers () { + public unowned List<Expression> get_initializers () { return initializers; } |