diff --git a/lib/graphql/subscriptions/action_cable_subscriptions.rb b/lib/graphql/subscriptions/action_cable_subscriptions.rb
index <HASH>..<HASH> 100644
--- a/lib/graphql/subscriptions/action_cable_subscriptions.rb
+++ b/lib/graphql/subscriptions/action_cable_subscriptions.rb
@@ -46,7 +46,7 @@ module GraphQL
     #       # Track the subscription here so we can remove it
     #       # on unsubscribe.
     #       if result.context[:subscription_id]
-    #         @subscription_ids << context[:subscription_id]
+    #         @subscription_ids << result.context[:subscription_id]
     #       end
     #
     #       transmit(payload)
Fix ActionCableSubscriptions channel example

Simple typo that leads to memory leaks!