Skip to content

Commit dada24c

Browse files
committed
fix: docstring of ByteArray.IsValidUTF8.intro
1 parent b2b385b commit dada24c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Init/Prelude.lean

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3395,7 +3395,10 @@ Note that in order for this definition to be well-behaved it is necessary to kno
33953395
is unique. To show this, one defines UTF-8 decoding and shows that encoding and decoding are
33963396
mutually inverse. -/
33973397
inductive ByteArray.IsValidUTF8 (b : ByteArray) : Prop
3398-
/-- Show that a byte -/
3398+
/--
3399+
Show that a byte array is valid UTF-8 by exhibiting it as `List.utf8Encode m` for some list `m`
3400+
of characters.
3401+
-/
33993402
| intro (m : List Char) (hm : Eq b (List.utf8Encode m))
34003403

34013404
/--

0 commit comments

Comments
 (0)