1

I have the following sentence and three versions to write it:

  • Ensure string only contains printable ASCII characters.
  • Ensure string contains only printable ASCII characters.
  • Ensure string contains printable ASCII characters only.

All versions look valid too me and all tell me the same, but what is the actual difference (if any) and which one would be the best to stress the point best?

3

It's clearest if you place the word "only" in front of the word it modifies. In this case:

"Ensure the string contains only printable ASCII characters."

For more info, see this WikiHow post.

  • Thank you, Nicole. Less than optimally placed "only" is one of my pet peeves (but only one). – Drew Nov 18 '14 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.