diff --git a/go/toolchains.rst b/go/toolchains.rst index 3ac06b3ce7..57182aab5c 100644 --- a/go/toolchains.rst +++ b/go/toolchains.rst @@ -505,10 +505,7 @@ go_context ~~~~~~~~~~ This collects the information needed to form and return a :type:`GoContext` from -a rule ctx. It uses the attributes and the toolchains. It can only be used in -the implementation of a rule that has the go toolchain attached and the go -context data as an attribute. To do this declare the rule using the go_rule -wrapper. +a rule ctx. It uses the attributes and the toolchains. .. code:: bzl @@ -516,13 +513,6 @@ wrapper. go = go_context(ctx) ... - my_rule = go_rule( - _my_rule_impl, - attrs = { - ... - }, - ) - +--------------------------------+-----------------------------+-----------------------------------+ | **Name** | **Type** | **Default value** |