summaryrefslogtreecommitdiff
path: root/vala/valaswitchstatement.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-01-02 14:23:40 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-09-30 09:03:25 +0200
commit7d317ebfd78bb0e569f277e31b0f4522469b48af (patch)
tree208fc9a6d55286bf0d4ad51c6e38046263a62b76 /vala/valaswitchstatement.vala
parent469d043f9c2bb9492392048975809fa4388ca63e (diff)
downloadvala-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/valaswitchstatement.vala')
-rw-r--r--vala/valaswitchstatement.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaswitchstatement.vala b/vala/valaswitchstatement.vala
index 78cfa3d82..3a16872d7 100644
--- a/vala/valaswitchstatement.vala
+++ b/vala/valaswitchstatement.vala
@@ -65,11 +65,11 @@ public class Vala.SwitchStatement : CodeNode, Statement {
}
/**
- * Returns a copy of the list of switch sections.
+ * Returns the list of switch sections.
*
* @return section list
*/
- public List<SwitchSection> get_sections () {
+ public unowned List<SwitchSection> get_sections () {
return sections;
}