mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Add note about lack of a guard in missing tag
This commit is contained in:
parent
81481e2599
commit
cc07c93fc3
2 changed files with 5 additions and 2 deletions
|
@ -167,7 +167,8 @@ fn pattern_to_doc_help<'b>(
|
|||
TagName::Global("#Guard".into())
|
||||
);
|
||||
debug_assert!(args.len() == 2);
|
||||
pattern_to_doc_help(alloc, args[1].clone(), in_type_param)
|
||||
let tag = pattern_to_doc_help(alloc, args[1].clone(), in_type_param);
|
||||
tag.append(" (note the lack of a guard)")
|
||||
}
|
||||
RenderAs::Record(field_names) => {
|
||||
let mut arg_docs = Vec::with_capacity(args.len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue