Skip to content

Commit

Permalink
Add examples for nth.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Nov 10, 2010
1 parent 70cb270 commit aa64eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sass/script/functions.rb
Expand Up @@ -974,6 +974,9 @@ def length(list)
# Note that unlike some languages, the first item in a Sass list is number 1,
# the second number 2, and so forth.
#
# @example
# nth(10px 20px 30px, 1) => 10px
# nth((Helvetica, Arial, sans-serif), 3) => sans-serif
# @param list [Literal] The list
# @param n [Number] The index into the list
# @return [Literal] The nth item in the list
Expand Down

0 comments on commit aa64eda

Please sign in to comment.