Index: ios/web/public/web_state/web_state_observer.h |
diff --git a/ios/web/public/web_state/web_state_observer.h b/ios/web/public/web_state/web_state_observer.h |
index 5901462c3ba7f7ae6f0e3ac7c45467813549022b..ccdc26d9212eee95840f7b473a8c65d2f556f054 100644 |
--- a/ios/web/public/web_state/web_state_observer.h |
+++ b/ios/web/public/web_state/web_state_observer.h |
@@ -68,7 +68,7 @@ class WebStateObserver { |
// Called when a navigation finished in the WebState for the main frame. This |
// happens when a navigation is committed, aborted or replaced by a new one. |
// To know if the navigation has resulted in an error page, use |
- // NavigationContext::IsErrorPage(). |
+ // NavigationContext::GetError(). |
// |
// If this is called because the navigation committed, then the document load |
// will still be ongoing in the WebState returned by |navigation_context|. |