Skip to content

Commit

Permalink
Merge pull request #95 from lean-dojo/peiyang
Browse files Browse the repository at this point in the history
minor fix for doc format in premise selection
  • Loading branch information
Peiyang-Song authored Jul 1, 2024
2 parents b323172 + 79407f8 commit c2aff5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LeanCopilot/Tactics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private def annotatePremise (pi : PremiseInfo) : MetaM String := do
let premise_type ← Meta.ppExpr info.type
let some doc_str ← findDocString? (← getEnv) declName
| return s!"\n{pi.name} : {premise_type}"
return s!"\n{pi.name} : {premise_type}\n```doc\n{doc_str}```"
return s!"\n{pi.name} : {premise_type}\n```doc\n{doc_str}\n```"
catch _ => return s!"\n{pi.name} needs to be imported from {pi.path}.\n```code\n{pi.code}\n```"


Expand Down

0 comments on commit c2aff5e

Please sign in to comment.