Skip to content

Commit

Permalink
Merge pull request #71 from PatrickMassot/pm_docstring
Browse files Browse the repository at this point in the history
doc: Add docstring to some attributes
  • Loading branch information
Vtec234 authored Jul 19, 2024
2 parents d1b3320 + 7f76569 commit eaba628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ProofWidgets/Cancellable.lean
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def checkRequest (rid : RequestId) : RequestM (RequestTask CheckRequestResponse)

def cancellableSuffix : Name := `_cancellable

/-- Like `server_rpc_method`, but requests for this method can be cancelled.
The method should check for that using `IO.checkCanceled`.
Cancellable methods are invoked differently from JavaScript:
see `callCancellable` in `cancellable.ts`. -/
initialize
registerBuiltinAttribute {
name := `server_rpc_method_cancellable
Expand Down
1 change: 1 addition & 0 deletions ProofWidgets/Presentation/Expr.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ structure ExprPresenter where
layoutKind : LayoutKind := .block
present : Expr → MetaM Html

/-- Register an Expr presenter. It must have the type `ProofWidgets.ExprPresenter`. -/
initialize exprPresenters : TagAttribute ←
registerTagAttribute `expr_presenter
"Register an Expr presenter. It must have the type `ProofWidgets.ExprPresenter`."
Expand Down

0 comments on commit eaba628

Please sign in to comment.