rune-rs / rune

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

doc: Render tuples correctly #764

Closed udoprog closed 1 month ago

udoprog commented 1 month 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.