From 9a28f5a0eb667967af6257d1bf3b483c13097f24 Mon Sep 17 00:00:00 2001 From: Steven Troxler Date: Thu, 28 Nov 2024 00:45:05 -0800 Subject: [PATCH] Add a doc comment on AugAssign Summary: We aim try to give doc comments on all the Bindings variants, I noticed this was missing one. Reviewed By: ndmitchell Differential Revision: D66561089 fbshipit-source-id: 8891c2a3310eb11f6a82cec492f2efb97936dfe6 --- pyre2/pyre2/bin/alt/binding.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyre2/pyre2/bin/alt/binding.rs b/pyre2/pyre2/bin/alt/binding.rs index d841fe435b..ee178ce520 100644 --- a/pyre2/pyre2/bin/alt/binding.rs +++ b/pyre2/pyre2/bin/alt/binding.rs @@ -271,6 +271,8 @@ pub enum Binding { /// If the annotation has a type inside it (e.g. `int` then use the annotation). /// If the annotation doesn't (e.g. it's `Final`), then use the binding. AnnotatedType(Idx, Box), + /// A record of an "augmented assignment" statement like `x -= _` + /// or `a.b *= _`. These desugar to special method calls. AugAssign(StmtAugAssign), /// The Any type. AnyType(AnyStyle),