Skip to content

Commit a66beb4

Browse files
committed
wip: use in NormedSpace
1 parent c3608c2 commit a66beb4

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

Mathlib/Geometry/Manifold/MFDeriv/NormedSpace.lean

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -417,21 +417,12 @@ namespace Manifold
417417
open scoped Bundle Manifold ContDiff
418418
open Lean Meta Elab Tactic Doc
419419

420-
@[doc_command] meta def appendDocstringOf (n : Ident) : DocM <| Block ElabInline ElabBlock := do
421-
let doc ← realizeGlobalConstNoOverloadWithInfo n
422-
let some docStr ← findDocString? (← getEnv) doc
423-
| throwError "No doc-string for `{.ofConstName doc}`"
424-
-- Future: once there is a better auto-converter between markdown and verso doc-strings,
425-
-- rewrite this code accordingly!
426-
-- Perhaps, it could be nice to write .verso here.
427-
return .para #[.text docStr]
428-
429420
set_option doc.verso true in
430421
set_option doc.verso.suggestions false in
431422
/-- `d% f x` (scoped to the `Manifold` namespace) elaborates to `mvfderiv I J f x`,
432423
trying to determine `I` and `J` from the local context.
433424
434-
{appendDocstringOf mvfderiv} -/
425+
{insertDocstringOf mvfderiv} -/
435426
-- goal: now insert the doc-string of mvfderiv
436427
scoped elab:max "d%" ppSpace t:term:arg : term => do
437428
let e ← ensureIsFunction <| ← Term.elabTerm t none

0 commit comments

Comments
 (0)