Skip to content

Commit

Permalink
chore: add some missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Nov 7, 2024
1 parent b473580 commit 0348811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lean/Message.lean
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@ end SerialMessage

namespace Message

abbrev kind (msg : Message) :=
@[inherit_doc MessageData.kind] abbrev kind (msg : Message) :=
msg.data.kind

/-- Serializes the message, converting its data into a string and saving its kind. -/
@[inline] def serialize (msg : Message) : IO SerialMessage := do
return {msg with kind := msg.kind, data := ← msg.data.toString}

Expand Down

0 comments on commit 0348811

Please sign in to comment.