Skip to content

Commit ca26ca3

Browse files
readme update
1 parent dde27c0 commit ca26ca3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ pip install pyprintf
4646
The primary formatting function that mimics C-style `sprintf` behavior with Python enhancements.
4747

4848
**Parameters:**
49-
- `format_str` (str): Format string containing text and placeholders
49+
- `format` (str): Format string containing text and placeholders
5050
- `*args` (Any): Variable arguments to format (positional or keyword)
5151

5252
**Returns:**
5353
- `str`: Formatted string according to specifiers
5454

5555
**Signature:**
5656
```python
57-
def sprintf(format_str: str, *args: Any) -> str
57+
def sprintf(format: str, *args: Any) -> str:
5858
```
5959

6060
**Example:**
@@ -76,16 +76,16 @@ Array-accepting variant of `sprintf` for pre-collected arguments.
7676

7777
***Parameters:***
7878

79-
* `format_str` (str): Format string with placeholders
80-
* `argv` (Iterable[Any]): Collection of arguments to format
79+
- `format` (str): Format string containing text and placeholders
80+
- `*args` (Any): Variable arguments to format (positional or keyword)
8181

8282
***Return Value:***
8383

8484
- `str`: Formatted string according to specifiers
8585

8686
**Signature:**
8787
```python
88-
def vsprintf(format_str: str, argv: Iterable[Any]) -> str
88+
def vsprintf(format: str, *args: Any) -> str:
8989
```
9090

9191
### Difference between `sprintf` and `vsprintf`

0 commit comments

Comments
 (0)