Nesting :after of :last-child with LESS

Viewed 25286

Using LESS I need to remove an :after property within an element's :last-child.

li {
    &:after {
        content: '/';
    }
    &:last-child {
        &:after {
            content: '';
        }
    }
}

This is obviously not correct nesting - what am I missing?

2 Answers
Related