diff --git a/internal/service/dms/endpoint.go b/internal/service/dms/endpoint.go
index 382ab662197..3c05a448181 100644
--- a/internal/service/dms/endpoint.go
+++ b/internal/service/dms/endpoint.go
@@ -932,7 +932,7 @@ func resourceEndpointUpdate(d *schema.ResourceData, meta interface{}) error {
 					AuthSource:        aws.String(d.Get("mongodb_settings.0.auth_source").(string)),
 				}
 
-				// Set connection info in top-level namespace as well
+				// Update connection info in top-level namespace as well
 				request.Username = aws.String(d.Get("username").(string))
 				request.Password = aws.String(d.Get("password").(string))
 				request.ServerName = aws.String(d.Get("server_name").(string))