Browse Source

📝 Highlight all new lines in docs example upgrade (#795)

pull/856/head
Christoph Deil 5 years ago
committed by Sebastián Ramírez
parent
commit
cad6a6e0c1
  1. 3
      README.md
  2. 3
      docs/index.md

3
README.md

@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
Declare the body using standard Python types, thanks to Pydantic.
```Python hl_lines="2 7 8 9 10 24"
```Python hl_lines="2 7 8 9 10 23 24 25"
from fastapi import FastAPI
from pydantic import BaseModel

3
docs/index.md

@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
Declare the body using standard Python types, thanks to Pydantic.
```Python hl_lines="2 7 8 9 10 24"
```Python hl_lines="2 7 8 9 10 23 24 25"
from fastapi import FastAPI
from pydantic import BaseModel

Loading…
Cancel
Save