Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

test misspell #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ linters:
- scopelint
- dupl
- interfacer
- gosimple

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
Expand Down
5 changes: 5 additions & 0 deletions p/nums.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package p

func GetNumsExceptFirst(nums []int) []int {
return nums[1:len(nums)]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File is not gofmt-ed with -s (from gofmt)

Suggested change
return nums[1:len(nums)]
return nums[1:]

}