docs: Fix the Markdown syntax that is not displaying correctly (#658)

This commit is contained in:
mengxun
2025-08-12 22:51:21 +08:00
committed by GitHub
parent bededfed30
commit b1a108d0d3

View File

@@ -1798,7 +1798,7 @@ str := lo.Capitalize("heLLO")
### Ellipsis
Trims and truncates a string to a specified length **in bytes** and appends an ellipsis if truncated. If the string contains non-ASCII characters (which may occupy multiple bytes in UTF-8), truncating by byte length may split a character in the middle, potentially resulting in garbled output.
Trims and truncates a string to a specified length in `bytes` and appends an ellipsis if truncated. If the string contains non-ASCII characters (which may occupy multiple bytes in UTF-8), truncating by byte length may split a character in the middle, potentially resulting in garbled output.
```go
str := lo.Ellipsis(" Lorem Ipsum ", 5)