summaryrefslogtreecommitdiff
path: root/doc/data/messages/c/consider-using-ternary/good.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/c/consider-using-ternary/good.py')
-rw-r--r--doc/data/messages/c/consider-using-ternary/good.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/data/messages/c/consider-using-ternary/good.py b/doc/data/messages/c/consider-using-ternary/good.py
index c40beb573..bcb8446bc 100644
--- a/doc/data/messages/c/consider-using-ternary/good.py
+++ b/doc/data/messages/c/consider-using-ternary/good.py
@@ -1 +1,2 @@
-# This is a placeholder for correct code for this message.
+x, y = 1, 2
+maximum = x if x >= y else y