docs: fix invalid syntax in some sources examples (#10127)

## Summary

TOML 1.0 doesn't support multi-line for inline tables, so those examples
are invalid.
This commit is contained in:
Mathieu Kniewallner 2024-12-23 22:12:45 +01:00 committed by GitHub
parent 755ca8efb5
commit b24fb774b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 29 deletions

View file

@ -292,7 +292,7 @@ pub struct ToolUv {
example = r#"
[tool.uv.sources]
httpx = { git = "https://github.com/encode/httpx", tag = "0.27.0" }
pytest = { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl" }
pytest = { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl" }
pydantic = { path = "/path/to/pydantic", editable = true }
"#
)]