rune-rs / rune

An embeddable dynamic programming language for Rust.
https://rune-rs.github.io
Apache License 2.0
1.76k stars 89 forks source link

doc: Render tuples correctly #764

Closed udoprog closed 3 months ago

udoprog commented 3 months ago

Fixes #757 since this is basically all I think we can do now.

This ensures that tuples are rendered as we'd expect them to be rendered: image

Empty tuples as return values are rendered like this: image

I also added String::split_once since it's a method which uses a combination of Option + tuple types to render the documentation.