Skip to content

Commit ef93015

Browse files
authored
Merge pull request #21446 from AJDempsey/patch-3
Update gettingstarted.md to use f-string
2 parents 5b23d3e + b47eea6 commit ef93015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/manuals/compose/gettingstarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Make sure you have:
5959
@app.route('/')
6060
def hello():
6161
count = get_hit_count()
62-
return 'Hello World! I have been seen {} times.\n'.format(count)
62+
return f'Hello World! I have been seen {count} times.\n'
6363
```
6464

6565
In this example, `redis` is the hostname of the redis container on the
@@ -273,7 +273,7 @@ To see Compose Watch in action:
273273
message to `Hello from Docker!`:
274274

275275
```python
276-
return 'Hello from Docker! I have been seen {} times.\n'.format(count)
276+
return f'Hello from Docker! I have been seen {count} times.\n'
277277
```
278278

279279
2. Refresh the app in your browser. The greeting should be updated, and the

0 commit comments

Comments
 (0)