Skip to content

Commit be6b75d

Browse files
authored
Update split_into_first_and_last_name
Fix the return signature to reflect the List[str] return value, instead of `None`
1 parent 4112718 commit be6b75d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ print(name) # ['Ryan', 'McDermott']
571571

572572
**Good:**
573573
```python
574-
def split_into_first_and_last_name(name: str) -> None:
574+
def split_into_first_and_last_name(name: str) -> list:
575575
return name.split()
576576

577577
name = 'Ryan McDermott'

0 commit comments

Comments
 (0)