Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Currently the format string supports the following special sequences:
```

### Limitations
There is no compile-time warning if the number of {}'s in the format string doesn't match the number of return values. You'll just get None for extra return values. See src/lib.rs for more details.
There is no compile-time warning if the number of {}'s in the format string doesn't match the number of return values. You'll just get None for extra return values. See src/lib.rs for more details. Also, a trailing comma at the end of the macro invocation is treated as an undeclared type.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@
//!
//! ## LIMITATIONS:
//! There are no compile-time checks to make sure the format
//! strings matches the number of return arguments. Extra
//! return values will be None or cause a Result error.
//! strings matches the number of return arguments. Also, a
//! trailing comma at the end of the macro invocation is
//! treated as an undeclared type. Extra return values will
//! be None or cause a Result error.
//!
//! Like sscanf(), whitespace (including \n) is largely ignored.
//!
Expand Down