From a3a1750a29cd86922b34e851596f5ace7109eadf Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Thu, 22 Dec 2022 22:33:50 -0600 Subject: [PATCH] Use interpreter output, not comments, like with Dog example --- Doc/tutorial/classes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 9f4a695658a0b71..54540df3f64f47f 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -752,9 +752,9 @@ is to use :mod:`dataclasses` for this purpose:: john = Employee("john", "computer lab", 1000) >>> john.dept - # "computer lab" + "computer lab" >>> john.salary - # '1000' + 1000 A piece of Python code that expects a particular abstract data type can often be passed a class that emulates the methods of that data type instead. For