mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #3290 from tony-jinwoo-ahn/_range
Modify range in pytype.rs
This commit is contained in:
@@ -538,8 +538,7 @@ impl PyType {
|
||||
|
||||
const SIGNATURE_END_MARKER: &str = ")\n--\n\n";
|
||||
fn get_signature(doc: &str) -> Option<&str> {
|
||||
doc.find(SIGNATURE_END_MARKER)
|
||||
.map(|index| &doc[..index + 1])
|
||||
doc.find(SIGNATURE_END_MARKER).map(|index| &doc[..=index])
|
||||
}
|
||||
|
||||
fn find_signature<'a>(name: &str, doc: &'a str) -> Option<&'a str> {
|
||||
|
||||
Reference in New Issue
Block a user