summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirumal Venkat <me@thirumal.in>2019-04-09 18:30:38 +0530
committerClaudiu Popa <pcmanticore@gmail.com>2019-04-09 15:00:38 +0200
commit4c60efc2cb8bb99dadb4accb8257d54b5a113304 (patch)
tree5ec1263701b0a6ae0ae6cd0299a150124313e99f
parent6313b5a09d22c57930ca131c9db6235bbc8a457d (diff)
downloadastroid-git-4c60efc2cb8bb99dadb4accb8257d54b5a113304.tar.gz
Fix the "Hello Astroid" example in index.rst (#662)
-rw-r--r--doc/index.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/index.rst b/doc/index.rst
index 7c084874..92b251ff 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -24,11 +24,13 @@ Python constructs, as seen in the following example::
def func(first, second):
return first + second
- func(first, second)
+ arg_1 = 2
+ arg_2 = 3
+ func(arg_1, arg_2)
''')
>>> module.body[-1]
<Expr l.3 at 0x10ab46f28>
- >>> inferred = next(a.body[-1].value.infer())
+ >>> inferred = next(module.body[-1].value.infer())
>>> inferred
<Const.int l.None at 0x10ab00588>
>>> inferred.value