Unweird 'pub' token

This commit is contained in:
JJ Weber 2013-05-25 15:57:09 -07:00
parent c6c9533cd1
commit 1b3d19fb94

View file

@ -43,8 +43,7 @@ priv struct ImageState {
pub impl LocalImageCache {
/// The local cache will only do a single remote request for a given
/// URL in each 'round'. Layout should call this each time it begins
// FIXME: 'pub' is an unexpected token?
/* pub */ fn next_round(&mut self, on_image_available: @fn() -> ~fn(ImageResponseMsg)) {
pub fn next_round(&mut self, on_image_available: @fn() -> ~fn(ImageResponseMsg)) {
self.round_number += 1;
self.on_image_available = Some(on_image_available);
}