Browse Source

✏️ Fix error in `docs/en/docs/tutorial/middleware.md` (#12819)

pull/12820/merge
Alejandra 5 months ago
committed by GitHub
parent
commit
40912999d1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      docs/en/docs/tutorial/middleware.md

1
docs/en/docs/tutorial/middleware.md

@ -60,7 +60,6 @@ For example, you could add a custom header `X-Process-Time` containing the time
{* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *}
/// tip
```Python hl_lines="10 12-13"
Here we use <a href="https://docs.python.org/3/library/time.html#time.perf_counter" class="external-link" target="_blank">`time.perf_counter()`</a> instead of `time.time()` because it can be more precise for these use cases. 🤓

Loading…
Cancel
Save