/
githubmirror
/
sway
Обзор
Документация
Войти
/
githubmirror
/
sway
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
forc-plugins/forc-doc/src/render/util/mod.rs
7 строк
313 B
Sophie Dankel
fix: Adds generic trait impls to forc-doc (#6850)
23 янв 2025, 00:40
Не верифицирован
23 янв 2025, 00:40
9e1c320
Код
Авторство
О чём код?
//! Utilities for managing edge cases in rendering types and their corresponding documentation. pub mod format; /// Strip the generic suffix from a type name. For example, `Foo<T>` would become `Foo`. pub fn strip_generic_suffix(input: &str) -> &str { input.split_once('<').map_or(input, |(head, _)| head) }