Skip to content

Commit

Permalink
doc: refine rwa docstring (#5811)
Browse files Browse the repository at this point in the history
fixes #5792
  • Loading branch information
nomeata authored Oct 22, 2024
1 parent f0c1902 commit eddbdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Init/Tactics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ macro (name := rwSeq) "rw " c:(config)? s:rwRuleSeq l:(location)? : tactic =>
`(tactic| (rewrite $(c)? [$rs,*] $(l)?; with_annotate_state $rbrak (try (with_reducible rfl))))
| _ => Macro.throwUnsupported

/-- `rwa` calls `rw`, then closes any remaining goals using `assumption`. -/
/-- `rwa` is short-hand for `rw; assumption`. -/
macro "rwa " rws:rwRuleSeq loc:(location)? : tactic =>
`(tactic| (rw $rws:rwRuleSeq $[$loc:location]?; assumption))

Expand Down

0 comments on commit eddbdd7

Please sign in to comment.