Skip to content

Commit 6cfea21

Browse files
committed
fix tests
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent b935d5e commit 6cfea21

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

compiler/codegen/src/compile.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,10 +3378,9 @@ fn clean_doc(doc: &str) -> String {
33783378
// after first line.
33793379
let margin = doc
33803380
.lines()
3381-
// Skip the first line as per cpython impl
3382-
.skip(1)
3383-
// Find the non-blank line with the least indentation
3381+
// Find the non-blank lines
33843382
.filter(|line| !line.trim().is_empty())
3383+
// get the one with the least indentation
33853384
.map(|line| line.chars().take_while(|c| c == &' ').count())
33863385
.min();
33873386
if let Some(margin) = margin {

0 commit comments

Comments
 (0)