Skip to content

Commit

Permalink
Fix slice array syntax (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
BafS committed Dec 2, 2019
1 parent 9da7556 commit 569c6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hn.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn fetch_top_stories(num int) []Story {

stories_ids := json.decode([]int, text) or { exit(1) }

stories_top_ids := stories_ids.slice(0, num)
stories_top_ids := stories_ids[..num]

return stories_top_ids.map(fetch_story(it))
}
Expand Down

0 comments on commit 569c6a9

Please sign in to comment.