Cleanup trailing whitespace in api samples.

No functional changes.

Change-Id: I7511ba490bc0c86e80eda10a8246884338f57fdd
Merge "Cleanup trailing whitespace in api samples."