Patchwork [6,of,6,V2] exthelper: correct a documentation typo

login
register
mail settings
Submitter Matt Harbison
Date Dec. 23, 2018, 6:15 a.m.
Message ID <75e78ec0d24d0f356e33.1545545751@Envy>
Download mbox | patch
Permalink /patch/37331/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 23, 2018, 6:15 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1545545120 18000
#      Sun Dec 23 01:05:20 2018 -0500
# Node ID 75e78ec0d24d0f356e33dd047181b61ec35ffb4b
# Parent  f1c5ed4697f3cd8ecd3103faec187ac4cf383ebe
exthelper: correct a documentation typo

Patch

diff --git a/mercurial/exthelper.py b/mercurial/exthelper.py
--- a/mercurial/exthelper.py
+++ b/mercurial/exthelper.py
@@ -258,7 +258,7 @@  class exthelper(object):
 
         example::
 
-            @eh.function(context.changectx, 'babar')
+            @eh.addattr(context.changectx, 'babar')
             def babar(ctx):
                 return 'babar' in ctx.description
         """