Skip to content

Commit

Permalink
Fix doc-string in warn_deprecated_function.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 622155110
  • Loading branch information
mtthss authored and ChexDev committed Apr 5, 2024
1 parent f8e309e commit 8b889ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chex/_src/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def warn_deprecated_function(fun, replacement):
"""A decorator to mark a function definition as deprecated.
Example usage:
@warn_deprecated_function(fun, replacement='g')
def f(a, b):
return a + b
>>> @functools.partial(chex.warn_deprecated_function, replacement='g')
... def f(a, b):
... return a + b
Args:
fun: the deprecated function.
Expand Down

0 comments on commit 8b889ff

Please sign in to comment.